Property | Type | Description | |
---|---|---|---|
Down | |||
Up | |||
X | float | ||
Y | float | ||
Z | float | ||
Zero |
Method | Description | |
---|---|---|
Clamp ( |
Restricts a value to be within a specified range.
|
|
Clamp ( |
Restricts a value to be within a specified range.
|
|
ClampLength ( float maxLength ) : void | ||
ComponentMul ( |
||
CreateLerp ( |
||
CreateProjection ( |
||
CreateReflection ( |
||
CreateSlerp ( |
||
Cross ( |
||
Dot ( |
||
Dot ( |
||
Equals ( object obj ) : bool | ||
Flip ( ) : void | ||
GetDistance ( |
||
GetDistance2D ( |
||
GetDistance2DSquared ( |
||
GetDistanceSquared ( |
||
GetHashCode ( ) : int | ||
GetRotated ( |
||
GetRotated ( |
||
GetRotated ( |
||
GetRotated ( |
||
IsEquivalent ( |
||
IsUnit ( float epsilon = 0.05f ) : bool | ||
IsZero ( float epsilon = 0f ) : bool | ||
Max ( |
Returns a vector containing the largest components of the specified vectors.
|
|
Max ( |
Returns a vector containing the smallest components of the specified vectors.
|
|
Min ( |
Returns a vector containing the smallest components of the specified vectors.
|
|
Min ( |
Returns a vector containing the smallest components of the specified vectors.
|
|
Normalize ( ) : void | ||
Parse ( string value ) : |
||
SetLerp ( |
||
SetProjection ( |
Project a point / vector on a (virtual) plane. Consider we have a plane going through the origin. Because d = 0 we need just the normal. The vector n is assumed to be a unit vector.
|
|
SetReflection ( |
Calculate a reflection vector. Vec3 n is assumed to be a unit-vector.
|
|
SetSlerp ( |
||
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
Vec3 ( |
||
Vec3 ( Vec2 v2 ) : System | ||
Vec3 ( float f ) : System | ||
Vec3 ( float vx, float vy, float vz ) : System | ||
operator ( ) : |
||
operator ( ) : bool | ||
operator ( ) : float |
public static Clamp ( |
||
value | The value to clamp. | |
min | The minimum value. | |
max | The maximum value. | |
return |
public static Clamp ( |
||
value | The value to clamp. | |
min | The minimum value. | |
max | The maximum value. | |
result | When the method completes, contains the clamped value. | |
return | void |
public ClampLength ( float maxLength ) : void | ||
maxLength | float | |
return | void |
public static CreateLerp ( |
||
p | ||
q | ||
t | float | |
return |
public static CreateProjection ( |
||
i | ||
n | ||
return |
public static CreateReflection ( |
||
i | ||
n | ||
return |
public static CreateSlerp ( |
||
p | ||
q | ||
t | float | |
return |
public static Dot ( |
||
v0 | ||
v1 | ||
return | float |
public GetDistance2DSquared ( |
||
v | ||
return | float |
public GetDistanceSquared ( |
||
vec1 | ||
return | float |
public GetRotated ( |
||
center | ||
axis | ||
angle | float | |
return |
public GetRotated ( |
||
center | ||
axis | ||
cosa | float | |
sina | float | |
return |
public GetRotated ( |
||
axis | ||
angle | float | |
return |
public GetRotated ( |
||
axis | ||
cosa | float | |
sina | float | |
return |
public IsEquivalent ( |
||
v1 | ||
epsilon | float | |
return | bool |
public static Max ( |
||
left | The first source vector. | |
right | The second source vector. | |
return |
public static Max ( |
||
left | The first source vector. | |
right | The second source vector. | |
result | When the method completes, contains an new vector composed of the largest components of the source vectors. | |
return | void |
public static Min ( |
||
left | The first source vector. | |
right | The second source vector. | |
return |
public static Min ( |
||
left | The first source vector. | |
right | The second source vector. | |
result | When the method completes, contains an new vector composed of the smallest components of the source vectors. | |
return | void |
public SetLerp ( |
||
p | ||
q | ||
t | float | |
return | void |
public SetProjection ( |
||
i | ||
n | ||
return | void |
public SetReflection ( |
||
i | ||
n | ||
return | void |
public SetSlerp ( |
||
p | ||
q | ||
t | float | |
return | void |
public Vec3 ( float vx, float vy, float vz ) : System | ||
vx | float | |
vy | float | |
vz | float | |
return | System |