summary:
Represents a three-dimensional vector.
Field: X
summary:
The X component of the Vector3.
Field: Y
summary:
The Y component of the Vector3.
Field: Z
summary:
The Z component of the Vector3.
Method: #ctor(OpenTK.Math.Vector2)
summary:
Constructs a new Vector3 from the given Vector2.
param:
v
The Vector2 to copy components from.
Method: #ctor(OpenTK.Math.Vector3)
summary:
Constructs a new Vector3 from the given Vector3.
param:
v
The Vector3 to copy components from.
Method: #ctor(OpenTK.Math.Vector4)
summary:
Constructs a new Vector3 from the given Vector4.
param:
v
The Vector4 to copy components from.
Method: #ctor(System.Single,System.Single,System.Single)
summary:
Constructs a new Vector3.
param:
x
The x component of the Vector3.param:
y
The y component of the Vector3.param:
z
The z component of the Vector3.
Method: Add(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Add two Vectors
param:
a
First operandparam:
b
Second operandreturns:
Result of addition
Method: Add(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Add two Vectors
param:
a
First operandparam:
b
Second operandparam:
result
Result of addition
Method: BaryCentric(OpenTK.Math.Vector3,OpenTK.Math.Vector3,OpenTK.Math.Vector3,System.Single,System.Single)
summary:
Interpolate 3 Vectors using Barycentric coordinates
param:
a
First input Vectorparam:
b
Second input Vectorparam:
c
Third input Vectorparam:
u
First Barycentric Coordinateparam:
v
Second Barycentric Coordinatereturns:
a when u=v=0, b when u=1,v=0, c when u=0,v=1, and a linear combination of a,b,c otherwise
Method: Clamp(OpenTK.Math.Vector3,OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Clamp a vector to the given minimum and maximum vectors
param:
vec
Input vectorparam:
min
Minimum vectorparam:
max
Maximum vectorreturns:
The clamped vector
Method: Clamp(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Clamp a vector to the given minimum and maximum vectors
param:
vec
Input vectorparam:
min
Minimum vectorparam:
max
Maximum vectorparam:
result
The clamped vector
Method: ComponentMax(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Calculate the component-wise maximum of two vectors
param:
a
First operandparam:
b
Second operandreturns:
The component-wise maximum
Method: ComponentMax(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Calculate the component-wise maximum of two vectors
param:
a
First operandparam:
b
Second operandparam:
result
The component-wise maximum
Method: ComponentMin(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Calculate the component-wise minimum of two vectors
param:
a
First operandparam:
b
Second operandreturns:
The component-wise minimum
Method: ComponentMin(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Calculate the component-wise minimum of two vectors
param:
a
First operandparam:
b
Second operandparam:
result
The component-wise minimum
Method: Cross(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Caclulate the cross (vector) product of two vectors
param:
left
First operandparam:
right
Second operandreturns:
The cross product of the two inputs
Method: Cross(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Caclulate the cross (vector) product of two vectors
param:
left
First operandparam:
right
Second operandparam:
result
The cross product of the two inputsreturns:
The cross product of the two inputs
Method: Div(OpenTK.Math.Vector3,System.Single)
summary:
Divide a vector by a scalar
param:
a
Vector operandparam:
f
Scalar operandreturns:
Result of the division
Method: Div(OpenTK.Math.Vector3@,System.Single,OpenTK.Math.Vector3@)
summary:
Divide a vector by a scalar
param:
a
Vector operandparam:
f
Scalar operandparam:
result
Result of the division
Method: Dot(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Caclulate the dot (scalar) product of two vectors
param:
left
First operandparam:
right
Second operandreturns:
The dot product of the two inputs
Method: Lerp(OpenTK.Math.Vector3,OpenTK.Math.Vector3,System.Single)
summary:
Returns a new Vector that is the linear blend of the 2 given Vectors
param:
a
First input vectorparam:
b
Second input vectorparam:
blend
The blend factorreturns:
a when blend=0, b when blend=1, and a linear combination otherwise
Method: Max(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Returns the Vector3 with the minimum magnitude
param:
left
Left operandparam:
right
Right operandreturns:
The minimum Vector3
Method: Min(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Returns the Vector3 with the minimum magnitude
param:
left
Left operandparam:
right
Right operandreturns:
The minimum Vector3
Method: Mult(OpenTK.Math.Vector3,System.Single)
summary:
Multiply a vector and a scalar
param:
a
Vector operandparam:
f
Scalar operandreturns:
Result of the multiplication
Method: Mult(OpenTK.Math.Vector3@,System.Single,OpenTK.Math.Vector3@)
summary:
Multiply a vector and a scalar
param:
a
Vector operandparam:
f
Scalar operandparam:
result
Result of the multiplication
Method: Normalize
summary:
Scales the Vector3 to unit length.
Method: Normalize(OpenTK.Math.Vector3)
summary:
Scale a vector to unit length
param:
vec
The input vectorreturns:
The normalized vector
Method: Normalize(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Scale a vector to unit length
param:
vec
The input vectorparam:
result
The normalized vector
Method: NormalizeFast
summary:
Scales the Vector3 to approximately unit length.
Method: NormalizeFast(OpenTK.Math.Vector3)
summary:
Scale a vector to approximately unit length
param:
vec
The input vectorreturns:
The normalized vector
Method: NormalizeFast(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Scale a vector to approximately unit length
param:
vec
The input vectorparam:
result
The normalized vector
Method: Scale(System.Single,System.Single,System.Single)
summary:
Scales the current Vector3 by the given amounts.
param:
sx
The scale of the X component.param:
sy
The scale of the Y component.param:
sz
The scale of the Z component.
Method: Sub(OpenTK.Math.Vector3,OpenTK.Math.Vector3)
summary:
Subtract one Vector from another
param:
a
First operandparam:
b
Second operandreturns:
Result of subtraction
Method: Sub(OpenTK.Math.Vector3@,OpenTK.Math.Vector3@,OpenTK.Math.Vector3@)
summary:
Subtract one Vector from another
param:
a
First operandparam:
b
Second operandparam:
result
Result of subtraction
Method: ToString
summary:
Returns a System.String that represents the current Vector3.
Method: Transform(OpenTK.Math.Vector3,OpenTK.Math.Matrix4)
summary:
Transform a Vector by the given Matrix
param:
pos
The vector to transformparam:
mat
The desired transformationreturns:
The transformed vector
Method: TransformNormal(OpenTK.Math.Vector3,OpenTK.Math.Matrix4)
summary:
Transform a Normal by the given Matrix
param:
norm
The normal to transformparam:
mat
The desired transformationreturns:
The transformed normalremarks:
This calculates the inverse of the given matrix, use TransformNormalInverse if you
already have the inverse to avoid this extra calculation
Method: TransformNormalInverse(OpenTK.Math.Vector3,OpenTK.Math.Matrix4)
summary:
Transform a Normal by the (transpose of the) given Matrix
param:
norm
The normal to transformparam:
mat
The inverse of the desired transformationreturns:
The transformed normalremarks:
This version doesn't calculate the inverse matrix.
Use this version if you already have the inverse of the desired transform to hand
Method: TransformPerspective(OpenTK.Math.Vector3,OpenTK.Math.Matrix4)
summary:
Transform a Vector3 by the given Matrix, and project the resulting Vector4 back to a Vector3
param:
pos
The vector to transformparam:
mat
The desired transformationreturns:
The transformed vector
Method: TransformPosition(OpenTK.Math.Vector3,OpenTK.Math.Matrix4)
summary:
Transform a Position by the given Matrix
param:
pos
The position to transformparam:
mat
The desired transformationreturns:
The transformed position
Method: TransformVector(OpenTK.Math.Vector3,OpenTK.Math.Matrix4)
summary:
Transform a direction vector by the given Matrix
Assumes the matrix has a bottom row of (0,0,0,1), that is the translation part is ignored.
param:
vec
The vector to transformparam:
mat
The desired transformationreturns:
The transformed vector
Property: Length
summary:
Gets the length (magnitude) of the vector.
Property: LengthFast
summary:
Gets an approximation of the vector length (magnitude).
remarks:
This property uses an approximation of the square root function to calculate vector magnitude, with
an upper error bound of 0.001.
Property: LengthSquared
summary:
Gets the square of the vector length (magnitude).
remarks:
This property avoids the costly square root operation required by the Length property. This makes it more suitable
for comparisons.