Свойство | Type | Description | |
---|---|---|---|
Down | |||
Up | |||
X | float | ||
Y | float | ||
Z | float | ||
Zero |
Méthode | 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. | |
Résultat |
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. | |
Résultat | void |
public ClampLength ( float maxLength ) : void | ||
maxLength | float | |
Résultat | void |
public static CreateLerp ( |
||
p | ||
q | ||
t | float | |
Résultat |
public static CreateProjection ( |
||
i | ||
n | ||
Résultat |
public static CreateReflection ( |
||
i | ||
n | ||
Résultat |
public static CreateSlerp ( |
||
p | ||
q | ||
t | float | |
Résultat |
public static Dot ( |
||
v0 | ||
v1 | ||
Résultat | float |
public GetDistance2DSquared ( |
||
v | ||
Résultat | float |
public GetDistanceSquared ( |
||
vec1 | ||
Résultat | float |
public GetRotated ( |
||
center | ||
axis | ||
angle | float | |
Résultat |
public GetRotated ( |
||
center | ||
axis | ||
cosa | float | |
sina | float | |
Résultat |
public GetRotated ( |
||
axis | ||
angle | float | |
Résultat |
public GetRotated ( |
||
axis | ||
cosa | float | |
sina | float | |
Résultat |
public IsEquivalent ( |
||
v1 | ||
epsilon | float | |
Résultat | bool |
public static Max ( |
||
left | The first source vector. | |
right | The second source vector. | |
Résultat |
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. | |
Résultat | void |
public static Min ( |
||
left | The first source vector. | |
right | The second source vector. | |
Résultat |
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. | |
Résultat | void |
public static Parse ( string value ) : |
||
value | string | |
Résultat |
public SetLerp ( |
||
p | ||
q | ||
t | float | |
Résultat | void |
public SetProjection ( |
||
i | ||
n | ||
Résultat | void |
public SetReflection ( |
||
i | ||
n | ||
Résultat | void |
public SetSlerp ( |
||
p | ||
q | ||
t | float | |
Résultat | void |
public Vec3 ( float vx, float vy, float vz ) : System | ||
vx | float | |
vy | float | |
vz | float | |
Résultat | System |