record _TVector2Helper
Unit
Neslib.FastMath 
Declaration
type _TVector2Helper = record helper for TVector2 
Description
Adds common constants of type TVector2 
Overview
Fields
Methods
Description
Fields
internal const Zero : TVector2 = (X: 0; Y: 0); | 
 
| 
  |  
 
internal const One  : TVector2 = (X: 1; Y: 1); | 
 
| 
  |  
 
internal const UnitX: TVector2 = (X: 1; Y: 0); | 
 
| 
  |  
 
internal const UnitY: TVector2 = (X: 0; Y: 1); | 
 
| 
  |  
 
Methods
function Floor: TIVector2; inline; | 
 
| 
 
Rounds the components of the vector towards negative infinity.
 
Returns
The rounded vector.  |  
 
function Ceiling: TIVector2; inline; | 
 
| 
 
Rounds the components of the vector towards positive infinity.
 
Returns
The rounded vector.  |  
 
function Truncate: TIVector2; inline; | 
 
| 
 
Rounds the components of the vector towards 0.
 
Returns
The rounded vector.  |  
 
function Round: TIVector2; inline; | 
 
| 
 
Rounds the components of the vector towards the nearest integer.
  If a component is exactly between two integer values (if the fraction is 0.5), then it is set to the even number 
Returns
The rounded vector.  |  
 
 Generated by PasDocEx, based on PasDoc 0.14.0. 
 |