SCNVector3 Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A 3-component vector.
[System.Serializable]
public struct SCNVector3 : IEquatable<SceneKit.SCNVector3>
type SCNVector3 = struct
- Inheritance
-
SCNVector3
- Attributes
- Implements
Constructors
SCNVector3(nfloat, nfloat, nfloat) | |
SCNVector3(SCNVector3) | |
SCNVector3(SCNVector4) | |
SCNVector3(Single, Single, Single) | |
SCNVector3(Vector3) |
Fields
One |
A vector whose components are each 1. |
SizeInBytes |
The size in bytes of the vector. |
UnitX |
A unit vector in the X direction. |
UnitY |
A unit vector in the Y direction. |
UnitZ |
A unit vector in the Z direction. |
X |
Gets or sets the X component. |
Y |
Gets or sets the Y component. |
Z |
Gets or sets the Z component. |
Zero |
The Zero vector. |
Properties
Length |
Gets the length of the vector. |
LengthFast |
Gets the approximate length of the vector by using an approximation of the square root operation. |
LengthSquared |
Gets the sum of the squares of the components of the vector. |
Xy |
Gets or sets the X and Y components. |
Methods
Add(SCNVector3, SCNVector3, SCNVector3) |
Adds |
Add(SCNVector3, SCNVector3) |
Adds |
BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat, SCNVector3) | |
BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat) | |
BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single, SCNVector3) |
Interpolates |
BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single) |
Interpolates |
CalculateAngle(SCNVector3, SCNVector3, nfloat) | |
CalculateAngle(SCNVector3, SCNVector3, Single) |
Calculates the angle, in radians, between the |
CalculateAngle(SCNVector3, SCNVector3) |
Calculates the angle, in radians, between the |
Clamp(SCNVector3, SCNVector3, SCNVector3, SCNVector3) |
Clamps the components of |
Clamp(SCNVector3, SCNVector3, SCNVector3) |
Clamps the components of |
ComponentMax(SCNVector3, SCNVector3, SCNVector3) |
Calculates the vector whose components are the componentwise maxima of |
ComponentMax(SCNVector3, SCNVector3) |
Returns a vector whose components are the componentwise maxima of |
ComponentMin(SCNVector3, SCNVector3, SCNVector3) |
Calculates the vector whose components are the componentwise minima of |
ComponentMin(SCNVector3, SCNVector3) |
Returns a vector whose components are the componentwise minima of |
Cross(SCNVector3, SCNVector3, SCNVector3) |
the cross product of |
Cross(SCNVector3, SCNVector3) |
Returns the cross product of |
Divide(SCNVector3, nfloat, SCNVector3) | |
Divide(SCNVector3, nfloat) | |
Divide(SCNVector3, SCNVector3, SCNVector3) |
Performs the componentwise division of |
Divide(SCNVector3, SCNVector3) |
Returns the componentwise division of |
Divide(SCNVector3, Single, SCNVector3) |
Divides the components of |
Divide(SCNVector3, Single) |
Divides the components of |
Dot(SCNVector3, SCNVector3, nfloat) | |
Dot(SCNVector3, SCNVector3, Single) |
Sets |
Dot(SCNVector3, SCNVector3) |
Returns the dot product of |
Equals(Object) |
Returns |
Equals(SCNVector3) |
Returns |
GetHashCode() |
Returns the hashcode for this instance. |
Lerp(SCNVector3, SCNVector3, nfloat, SCNVector3) | |
Lerp(SCNVector3, SCNVector3, nfloat) | |
Lerp(SCNVector3, SCNVector3, Single, SCNVector3) |
Returns the linear interpolation from |
Lerp(SCNVector3, SCNVector3, Single) |
Returns the linear interpolation from |
Max(SCNVector3, SCNVector3) |
Returns the vector with the larger magnitude. |
Min(SCNVector3, SCNVector3) |
Returns the vector with the smaller magnitude. |
Multiply(SCNVector3, nfloat, SCNVector3) | |
Multiply(SCNVector3, nfloat) | |
Multiply(SCNVector3, SCNVector3, SCNVector3) |
Multiplies the components of |
Multiply(SCNVector3, SCNVector3) |
Multiplies the components of |
Multiply(SCNVector3, Single, SCNVector3) |
Multiplies |
Multiply(SCNVector3, Single) |
Multiplies |
Normalize() |
Scales this instance to unit length. |
Normalize(SCNVector3, SCNVector3) |
Scales |
Normalize(SCNVector3) |
Scales |
NormalizeFast() |
Scales this vector to approximately unit length. |
NormalizeFast(SCNVector3, SCNVector3) |
Scales |
NormalizeFast(SCNVector3) |
Scales |
Subtract(SCNVector3, SCNVector3, SCNVector3) |
Subtracts |
Subtract(SCNVector3, SCNVector3) |
Subtracts |
ToString() |
Returns a string representation of this instance. |
Transform(SCNVector3, SCNMatrix4, SCNVector4) |
Calulates the transformation of |
Transform(SCNVector3, SCNMatrix4) |
Returns the transformation of |
TransformNormal(SCNVector3, SCNMatrix4, SCNVector3) |
Applies the tranformation that is represented by |
TransformNormal(SCNVector3, SCNMatrix4) |
Applies the tranformation that is represented by |
TransformNormalInverse(SCNVector3, SCNMatrix4, SCNVector3) |
Applies the inverse of the tranformation that is represented by |
TransformNormalInverse(SCNVector3, SCNMatrix4) |
Applies the inverse of the tranformation that is represented by |
TransformPerspective(SCNVector3, SCNMatrix4, SCNVector3) |
Applies the tranformation that is represented by |
TransformPerspective(SCNVector3, SCNMatrix4) |
Applies the tranformation that is represented by |
TransformPosition(SCNVector3, SCNMatrix4, SCNVector3) |
Applies the tranformation that is represented by |
TransformPosition(SCNVector3, SCNMatrix4) |
Applies the tranformation that is represented by |
TransformVector(SCNVector3, SCNMatrix4, SCNVector3) |
Applies the tranformation that is represented by |
TransformVector(SCNVector3, SCNMatrix4) |
Applies the tranformation that is represented by |