A three-dimensional vector with 32-bit integer precision.
struct
|
Vec3I
|
implements
|
IEquatable<Vec3I>
|
/ \ | X | | Y | | Z | \ /
The serialization helper object for values of Vec3I.
public
static
readonly
field
|
Serializer
|
||
type
|
ITypeSerializerEx<Vec3I>
|
The zero vector.
public
static
readonly
field
|
Zero
|
||
type
|
Vec3I
|
Returns the length of this vector.
public
property
|
Length
{
get
}
|
||
type
|
float64
|
||
value
|
|
The vector length. |
Returns the squared length of this vector.
public
property
|
LengthSqr
{
get
}
|
||
type
|
float64
|
||
value
|
|
The squared vector length. |
X-coordinate of vector.
public
readonly
field
|
X
|
||
type
|
int32
|
Y-coordinate of vector.
public
readonly
field
|
Y
|
||
type
|
int32
|
Z-coordinate of vector.
public
readonly
field
|
Z
|
||
type
|
int32
|
Creates a new instance of Vec3I.
public
constructor
|
Vec3I
(int32 x,
int32 y,
int32 z)
|
||
params
|
x
|
X-coordinate of vector. | |
y
|
Y-coordinate of vector. | ||
z
|
Z-coordinate of vector. |
Adds this vector and the given one.
[Pure]
|
||||
public
method
|
Add
(Vec3I v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Adds this vector and the given one.
[Pure]
|
||||
public
method
|
Add
(int32 x,
int32 y,
int32 z)
|
|||
type
|
Vec3I
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Computes the cross product between this vector and the given one.
[Pure]
|
||||
public
method
|
Cross
(Vec3I v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Computes the cross product between this vector and the given one.
[Pure]
|
||||
public
method
|
Cross
(int32 x,
int32 y,
int32 z)
|
|||
type
|
Vec3I
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Computes the dot product between this vector and the given one.
[Pure]
|
||||
public
method
|
Dot
(Vec3I v)
|
|||
type
|
int32
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Computes the dot product between this vector and the given one.
[Pure]
|
||||
public
method
|
Dot
(int32 x,
int32 y,
int32 z)
|
|||
type
|
int32
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Checks if this vector and the given one are equal.
[Pure]
|
||||
public
method
|
Equals
(Vec3I v)
|
|||
type
|
bool
|
|||
params
|
v
|
The vector. | ||
returns
|
true
if
both
vectors
are
equal,
false
if
they
are
not. |
Checks if this vector and the given one are equal.
[Pure]
|
||||
public
method
|
Equals
(int32 x,
int32 y,
int32 z)
|
|||
type
|
bool
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
true
if
both
vectors
are
equal,
false
if
they
are
not. |
[Pure]
|
||||
public
override
method
|
GetHashCode
()
|
|||
type
|
int32
|
Computes the component-wise maximum of this vector and the given one.
[Pure]
|
||||
public
method
|
Max
(Vec3I v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Computes the component-wise maximum of this vector and the given one.
[Pure]
|
||||
public
method
|
Max
(int32 x,
int32 y,
int32 z)
|
|||
type
|
Vec3I
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Computes the component-wise minimum of this vector and the given one.
[Pure]
|
||||
public
method
|
Min
(Vec3I v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Computes the component-wise minimum of this vector and the given one.
[Pure]
|
||||
public
method
|
Min
(int32 x,
int32 y,
int32 z)
|
|||
type
|
Vec3I
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Multiplies this vector with the given one.
[Pure]
|
||||
public
method
|
Mul
(Vec3I v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Multiplies this vector with the given scalar value.
[Pure]
|
||||
public
method
|
Mul
(int32 v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The scalar value. | ||
returns
|
The resulting vector. |
Multiplies this vector with the given one.
[Pure]
|
||||
public
method
|
Mul
(int32 x,
int32 y,
int32 z)
|
|||
type
|
Vec3I
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Negates this vector.
[Pure]
|
||||
public
method
|
Neg
()
|
|||
type
|
Vec3I
|
|||
returns
|
The resulting vector. |
Performs a left bit shift on each component of this vector.
[Pure]
|
||||
public
method
|
ShiftLeft
(int32 v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The shift amount. | ||
returns
|
The resulting vector. |
Performs a right bit shift on each component of this vector.
[Pure]
|
||||
public
method
|
ShiftRight
(int32 v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The shift amount. | ||
returns
|
The resulting vector. |
Subtracts the given vector from this one.
[Pure]
|
||||
public
method
|
Sub
(Vec3I v)
|
|||
type
|
Vec3I
|
|||
params
|
v
|
The vector. | ||
returns
|
The resulting vector. |
Subtracts the given vector from this one.
[Pure]
|
||||
public
method
|
Sub
(int32 x,
int32 y,
int32 z)
|
|||
type
|
Vec3I
|
|||
params
|
x
|
X-component of vector. | ||
y
|
Y-component of vector. | |||
z
|
Z-component of vector. | |||
returns
|
The resulting vector. |
Returns a formatted string representation of this vector.
[Pure]
|
||||
public
override
method
|
ToString
()
|
|||
type
|
string
|
|||
returns
|
[not-null]
The
formatted
string
value. |