Свойство | Type | Description | |
---|---|---|---|
One | |||
SizeInBytes | int | ||
UnitX | |||
UnitY | |||
UnitZ | |||
X | int | ||
Y | int | ||
Z | int | ||
Zero |
Méthode | Description | |
---|---|---|
Add ( left, right ) : |
Adds two vectors.
|
|
Add ( &left, &right, &result ) : void |
Adds two vectors.
|
|
Clamp ( value, min, max ) : |
Restricts a value to be within a specified range.
|
|
Clamp ( &value, &min, &max, &result ) : void |
Restricts a value to be within a specified range.
|
|
Divide ( value, int scale ) : |
Scales a vector by the given value.
|
|
Divide ( &value, int scale, &result ) : void |
Scales a vector by the given value.
|
|
Equals ( object value ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
Int3 ( Array values ) : System |
Initializes a new instance of the Int3 struct.
|
|
Int3 ( int value ) : System |
Initializes a new instance of the Int3 struct.
|
|
Int3 ( int x, int y, int z ) : System |
Initializes a new instance of the Int3 struct.
|
|
Max ( left, right ) : |
Returns a vector containing the largest components of the specified vectors.
|
|
Max ( &left, &right, &result ) : void |
Returns a vector containing the smallest components of the specified vectors.
|
|
Min ( left, right ) : |
Returns a vector containing the smallest components of the specified vectors.
|
|
Min ( &left, &right, &result ) : void |
Returns a vector containing the smallest components of the specified vectors.
|
|
Modulate ( left, right ) : |
Modulates a vector with another by performing component-wise multiplication.
|
|
Modulate ( &left, &right, &result ) : void |
Modulates a vector with another by performing component-wise multiplication.
|
|
Multiply ( value, int scale ) : |
Scales a vector by the given value.
|
|
Multiply ( &value, int scale, &result ) : void |
Scales a vector by the given value.
|
|
Negate ( value ) : |
Reverses the direction of a given vector.
|
|
Negate ( &value, &result ) : void |
Reverses the direction of a given vector.
|
|
Subtract ( left, right ) : |
Subtracts two vectors.
|
|
Subtract ( &left, &right, &result ) : void |
Subtracts two vectors.
|
|
ToArray ( ) : int[] |
Creates an array containing the elements of the vector.
|
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
ToString ( IFormatProvider formatProvider ) : string |
Returns a System.String that represents this instance.
|
|
ToString ( string format ) : string |
Returns a System.String that represents this instance.
|
|
ToString ( string format, IFormatProvider formatProvider ) : string |
Returns a System.String that represents this instance.
|
|
operator ( ) : |
Adds two vectors.
|
|
this ( int index ) : int |
Gets or sets the component at the specified index.
|
Méthode | Description | |
---|---|---|
Equals ( &other ) : bool | ||
operator ( ) : bool |
public static Add ( left, right ) : |
||
left | The first vector to add. | |
right | The second vector to add. | |
Résultat |
public static Add ( &left, &right, &result ) : void | ||
left | The first vector to add. | |
right | The second vector to add. | |
result | When the method completes, contains the sum of the two vectors. | |
Résultat | void |
public static Clamp ( value, min, max ) : |
||
value | The value to clamp. | |
min | The minimum value. | |
max | The maximum value. | |
Résultat |
public static Clamp ( &value, &min, &max, &result ) : void | ||
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 static Divide ( value, int scale ) : |
||
value | The vector to scale. | |
scale | int | The amount by which to scale the vector. |
Résultat |
public static Divide ( &value, int scale, &result ) : void | ||
value | The vector to scale. | |
scale | int | The amount by which to scale the vector. |
result | When the method completes, contains the scaled vector. | |
Résultat | void |
public Equals ( object value ) : bool | ||
value | object | The |
Résultat | bool |
public Int3 ( Array values ) : System | ||
values | Array | The values to assign to the X, Y, Z, and W components of the vector. This must be an array with four elements. |
Résultat | System |
public Int3 ( int value ) : System | ||
value | int | The value that will be assigned to all components. |
Résultat | System |
public Int3 ( int x, int y, int z ) : System | ||
x | int | Initial value for the X component of the vector. |
y | int | Initial value for the Y component of the vector. |
z | int | Initial value for the Z component of the vector. |
Résultat | System |
public static Max ( left, right ) : |
||
left | The first source vector. | |
right | The second source vector. | |
Résultat |
public static Max ( &left, &right, &result ) : void | ||
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, right ) : |
||
left | The first source vector. | |
right | The second source vector. | |
Résultat |
public static Min ( &left, &right, &result ) : void | ||
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 Modulate ( left, right ) : |
||
left | The first vector to modulate. | |
right | The second vector to modulate. | |
Résultat |
public static Modulate ( &left, &right, &result ) : void | ||
left | The first vector to modulate. | |
right | The second vector to modulate. | |
result | When the method completes, contains the modulated vector. | |
Résultat | void |
public static Multiply ( value, int scale ) : |
||
value | The vector to scale. | |
scale | int | The amount by which to scale the vector. |
Résultat |
public static Multiply ( &value, int scale, &result ) : void | ||
value | The vector to scale. | |
scale | int | The amount by which to scale the vector. |
result | When the method completes, contains the scaled vector. | |
Résultat | void |
public static Negate ( value ) : |
||
value | The vector to negate. | |
Résultat |
public static Negate ( &value, &result ) : void | ||
value | The vector to negate. | |
result | When the method completes, contains a vector facing in the opposite direction. | |
Résultat | void |
public static Subtract ( left, right ) : |
||
left | The first vector to subtract. | |
right | The second vector to subtract. | |
Résultat |
public static Subtract ( &left, &right, &result ) : void | ||
left | The first vector to subtract. | |
right | The second vector to subtract. | |
result | When the method completes, contains the difference of the two vectors. | |
Résultat | void |
public ToString ( IFormatProvider formatProvider ) : string | ||
formatProvider | IFormatProvider | The format provider. |
Résultat | string |
public ToString ( string format ) : string | ||
format | string | The format. |
Résultat | string |
public ToString ( string format, IFormatProvider formatProvider ) : string | ||
format | string | The format. |
formatProvider | IFormatProvider | The format provider. |
Résultat | string |
public this ( int index ) : int | ||
index | int | The index of the component to access. Use 0 for the X component, 1 for the Y component, 2 for the Z component, and 3 for the W component. |
Résultat | int |