SCNVector3 SCNVector3 Struct

Definition

A 3-component vector.

[System.Serializable]
public struct SCNVector3 : IEquatable<SceneKit.SCNVector3>
type SCNVector3 = struct
Inheritance
SCNVector3SCNVector3
Attributes
Implements

Constructors

SCNVector3(Vector3) SCNVector3(Vector3)
SCNVector3(SCNVector3) SCNVector3(SCNVector3)
SCNVector3(SCNVector4) SCNVector3(SCNVector4)
SCNVector3(nfloat, nfloat, nfloat) SCNVector3(nfloat, nfloat, nfloat)
SCNVector3(Single, Single, Single) SCNVector3(Single, Single, Single)

Fields

One One

A vector whose components are each 1.

SizeInBytes SizeInBytes

The size in bytes of the vector.

UnitX UnitX

A unit vector in the X direction.

UnitY UnitY

A unit vector in the Y direction.

UnitZ UnitZ

A unit vector in the Z direction.

X X

Gets or sets the X component.

Y Y

Gets or sets the Y component.

Z Z

Gets or sets the Z component.

Zero Zero

The Zero vector.

Properties

Length Length

Gets the length of the vector.

LengthFast LengthFast

Gets the approximate length of the vector by using an approximation of the square root operation.

LengthSquared LengthSquared

Gets the sum of the squares of the components of the vector.

Xy Xy

Gets or sets the X and Y components.

Methods

Add(SCNVector3, SCNVector3) Add(SCNVector3, SCNVector3)

Adds b to a.

Add(SCNVector3, SCNVector3, SCNVector3) Add(SCNVector3, SCNVector3, SCNVector3)

Adds b to a, and puts the result in result.

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat) BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat)
BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single) BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single)

Interpolates a, b, and c, by using the barycentric coordinates u and v.

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat, SCNVector3) BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat, SCNVector3)
BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single, SCNVector3) BaryCentric(SCNVector3, SCNVector3, SCNVector3, Single, Single, SCNVector3)

Interpolates a, b, and c, by using the barycentric coordinates u and v, and stores the result in result.

CalculateAngle(SCNVector3, SCNVector3, Single) CalculateAngle(SCNVector3, SCNVector3, Single)

Calculates the angle, in radians, between the first and second vectors and stores the result in result.

CalculateAngle(SCNVector3, SCNVector3, nfloat) CalculateAngle(SCNVector3, SCNVector3, nfloat)
CalculateAngle(SCNVector3, SCNVector3) CalculateAngle(SCNVector3, SCNVector3)

Calculates the angle, in radians, between the first and second vectors.

Clamp(SCNVector3, SCNVector3, SCNVector3) Clamp(SCNVector3, SCNVector3, SCNVector3)

Clamps the components of vec to be between min and max.

Clamp(SCNVector3, SCNVector3, SCNVector3, SCNVector3) Clamp(SCNVector3, SCNVector3, SCNVector3, SCNVector3)

Clamps the components of vec to be between min and max and stores the result in result.

ComponentMax(SCNVector3, SCNVector3) ComponentMax(SCNVector3, SCNVector3)

Returns a vector whose components are the componentwise maxima of a and b.

ComponentMax(SCNVector3, SCNVector3, SCNVector3) ComponentMax(SCNVector3, SCNVector3, SCNVector3)

Calculates the vector whose components are the componentwise maxima of a and b and stores the result in result.

ComponentMin(SCNVector3, SCNVector3) ComponentMin(SCNVector3, SCNVector3)

Returns a vector whose components are the componentwise minima of a and b and stores the result in result.

ComponentMin(SCNVector3, SCNVector3, SCNVector3) ComponentMin(SCNVector3, SCNVector3, SCNVector3)

Calculates the vector whose components are the componentwise minima of a and b and stores the result in result.

Cross(SCNVector3, SCNVector3) Cross(SCNVector3, SCNVector3)

Returns the cross product of left and right.

Cross(SCNVector3, SCNVector3, SCNVector3) Cross(SCNVector3, SCNVector3, SCNVector3)

the cross product of left and right and stores the result in result.

Divide(SCNVector3, Single, SCNVector3) Divide(SCNVector3, Single, SCNVector3)

Divides the components of vector by the scalar scale and stores the result in result.

Divide(SCNVector3, nfloat, SCNVector3) Divide(SCNVector3, nfloat, SCNVector3)
Divide(SCNVector3, SCNVector3, SCNVector3) Divide(SCNVector3, SCNVector3, SCNVector3)

Performs the componentwise division of vector by scale and stores the result in result.

Divide(SCNVector3, SCNVector3) Divide(SCNVector3, SCNVector3)

Returns the componentwise division of vector by scale.

Divide(SCNVector3, nfloat) Divide(SCNVector3, nfloat)
Divide(SCNVector3, Single) Divide(SCNVector3, Single)

Divides the components of vector by the scalar scale.

Dot(SCNVector3, SCNVector3) Dot(SCNVector3, SCNVector3)

Returns the dot product of left with right.

Dot(SCNVector3, SCNVector3, nfloat) Dot(SCNVector3, SCNVector3, nfloat)
Dot(SCNVector3, SCNVector3, Single) Dot(SCNVector3, SCNVector3, Single)

Sets result to the dot product of left with right.

Equals(SCNVector3) Equals(SCNVector3)

Returns true if other is identical to this vector.

Equals(Object) Equals(Object)

Returns true if other is a Vector3 and is identical to this vector.

GetHashCode() GetHashCode()

Returns the hashcode for this instance.

Lerp(SCNVector3, SCNVector3, nfloat) Lerp(SCNVector3, SCNVector3, nfloat)
Lerp(SCNVector3, SCNVector3, Single) Lerp(SCNVector3, SCNVector3, Single)

Returns the linear interpolation from a to b by the factor blend.

Lerp(SCNVector3, SCNVector3, nfloat, SCNVector3) Lerp(SCNVector3, SCNVector3, nfloat, SCNVector3)
Lerp(SCNVector3, SCNVector3, Single, SCNVector3) Lerp(SCNVector3, SCNVector3, Single, SCNVector3)

Returns the linear interpolation from a to b by the factor blend, and stores the result in result.

Max(SCNVector3, SCNVector3) Max(SCNVector3, SCNVector3)

Returns the vector with the larger magnitude.

Min(SCNVector3, SCNVector3) Min(SCNVector3, SCNVector3)

Returns the vector with the smaller magnitude.

Multiply(SCNVector3, Single, SCNVector3) Multiply(SCNVector3, Single, SCNVector3)

Multiplies vector by the scalar scale and stores the result in result.

Multiply(SCNVector3, nfloat, SCNVector3) Multiply(SCNVector3, nfloat, SCNVector3)
Multiply(SCNVector3, SCNVector3, SCNVector3) Multiply(SCNVector3, SCNVector3, SCNVector3)

Multiplies the components of vector by the components of scale and stores the result in result.

Multiply(SCNVector3, Single) Multiply(SCNVector3, Single)

Multiplies vector by the scalar scale.

Multiply(SCNVector3, nfloat) Multiply(SCNVector3, nfloat)
Multiply(SCNVector3, SCNVector3) Multiply(SCNVector3, SCNVector3)

Multiplies the components of vector by the components of scale.

Normalize() Normalize()

Scales this instance to unit length.

Normalize(SCNVector3) Normalize(SCNVector3)

Scales vec to unit length.

Normalize(SCNVector3, SCNVector3) Normalize(SCNVector3, SCNVector3)

Scales vec to unit length and stores the result in result.

NormalizeFast() NormalizeFast()

Scales this vector to approximately unit length.

NormalizeFast(SCNVector3) NormalizeFast(SCNVector3)

Scales vec to approximately unit length.

NormalizeFast(SCNVector3, SCNVector3) NormalizeFast(SCNVector3, SCNVector3)

Scales vec to approximately unit length and stores the result in result.

Subtract(SCNVector3, SCNVector3) Subtract(SCNVector3, SCNVector3)

Subtracts b from a.

Subtract(SCNVector3, SCNVector3, SCNVector3) Subtract(SCNVector3, SCNVector3, SCNVector3)

Subtracts b from a and stores the result in result.

ToString() ToString()

Returns a string representation of this instance.

Transform(SCNVector3, SCNMatrix4) Transform(SCNVector3, SCNMatrix4)

Returns the transformation of vec by mat.

Transform(SCNVector3, SCNMatrix4, SCNVector4) Transform(SCNVector3, SCNMatrix4, SCNVector4)

Calulates the transformation of vec by mat and stores the result in result.

TransformNormal(SCNVector3, SCNMatrix4) TransformNormal(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to norm.

TransformNormal(SCNVector3, SCNMatrix4, SCNVector3) TransformNormal(SCNVector3, SCNMatrix4, SCNVector3)

Applies the tranformation that is represented by mat to norm, and stores the result in result.

TransformNormalInverse(SCNVector3, SCNMatrix4) TransformNormalInverse(SCNVector3, SCNMatrix4)

Applies the inverse of the tranformation that is represented by invMat to norm.

TransformNormalInverse(SCNVector3, SCNMatrix4, SCNVector3) TransformNormalInverse(SCNVector3, SCNMatrix4, SCNVector3)

Applies the inverse of the tranformation that is represented by invMat to norm, and stores the result in result.

TransformPerspective(SCNVector3, SCNMatrix4, SCNVector3) TransformPerspective(SCNVector3, SCNMatrix4, SCNVector3)

Applies the tranformation that is represented by mat to vec, and stores the result in result.

TransformPerspective(SCNVector3, SCNMatrix4) TransformPerspective(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to vec.

TransformPosition(SCNVector3, SCNMatrix4) TransformPosition(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to vec.

TransformPosition(SCNVector3, SCNMatrix4, SCNVector3) TransformPosition(SCNVector3, SCNMatrix4, SCNVector3)

Applies the tranformation that is represented by mat to pos, and stores the result in result

TransformVector(SCNVector3, SCNMatrix4) TransformVector(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to vec.

TransformVector(SCNVector3, SCNMatrix4, SCNVector3) TransformVector(SCNVector3, SCNMatrix4, SCNVector3)

Applies the tranformation that is represented by mat to vec, and stores the result in result.

Operators

Addition(SCNVector3, SCNVector3) Addition(SCNVector3, SCNVector3)
Division(SCNVector3, Single) Division(SCNVector3, Single)
Division(SCNVector3, nfloat) Division(SCNVector3, nfloat)
Equality(SCNVector3, SCNVector3) Equality(SCNVector3, SCNVector3)
Explicit(SCNVector3 to Vector3) Explicit(SCNVector3 to Vector3)
Implicit(Vector3 to SCNVector3) Implicit(Vector3 to SCNVector3)
Inequality(SCNVector3, SCNVector3) Inequality(SCNVector3, SCNVector3)
Multiply(SCNVector3, nfloat) Multiply(SCNVector3, nfloat)
Multiply(SCNVector3, Single) Multiply(SCNVector3, Single)
Multiply(nfloat, SCNVector3) Multiply(nfloat, SCNVector3)
Multiply(Single, SCNVector3) Multiply(Single, SCNVector3)
Subtraction(SCNVector3, SCNVector3) Subtraction(SCNVector3, SCNVector3)
UnaryNegation(SCNVector3) UnaryNegation(SCNVector3)

Applies to