Düzenle

Aracılığıyla paylaş


SCNVector3 Struct

Definition

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 b to a, and puts the result in result.

Add(SCNVector3, SCNVector3)

Adds b to a.

BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat, SCNVector3)
BaryCentric(SCNVector3, SCNVector3, SCNVector3, nfloat, nfloat)
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.

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

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

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

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

CalculateAngle(SCNVector3, SCNVector3)

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

Clamp(SCNVector3, SCNVector3, SCNVector3, SCNVector3)

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

Clamp(SCNVector3, SCNVector3, SCNVector3)

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

ComponentMax(SCNVector3, SCNVector3, SCNVector3)

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

ComponentMax(SCNVector3, SCNVector3)

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

ComponentMin(SCNVector3, SCNVector3, SCNVector3)

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

ComponentMin(SCNVector3, SCNVector3)

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

Cross(SCNVector3, SCNVector3, SCNVector3)

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

Cross(SCNVector3, SCNVector3)

Returns the cross product of left and right.

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

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

Divide(SCNVector3, SCNVector3)

Returns the componentwise division of vector by scale.

Divide(SCNVector3, Single, SCNVector3)

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

Divide(SCNVector3, Single)

Divides the components of vector by the scalar scale.

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

Sets result to the dot product of left with right.

Dot(SCNVector3, SCNVector3)

Returns the dot product of left with right.

Equals(Object)

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

Equals(SCNVector3)

Returns true if other is identical to this vector.

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 a to b by the factor blend, and stores the result in result.

Lerp(SCNVector3, SCNVector3, Single)

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

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 vector by the components of scale and stores the result in result.

Multiply(SCNVector3, SCNVector3)

Multiplies the components of vector by the components of scale.

Multiply(SCNVector3, Single, SCNVector3)

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

Multiply(SCNVector3, Single)

Multiplies vector by the scalar scale.

Normalize()

Scales this instance to unit length.

Normalize(SCNVector3, SCNVector3)

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

Normalize(SCNVector3)

Scales vec to unit length.

NormalizeFast()

Scales this vector to approximately unit length.

NormalizeFast(SCNVector3, SCNVector3)

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

NormalizeFast(SCNVector3)

Scales vec to approximately unit length.

Subtract(SCNVector3, SCNVector3, SCNVector3)

Subtracts b from a and stores the result in result.

Subtract(SCNVector3, SCNVector3)

Subtracts b from a.

ToString()

Returns a string representation of this instance.

Transform(SCNVector3, SCNMatrix4, SCNVector4)

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

Transform(SCNVector3, SCNMatrix4)

Returns the transformation of vec by mat.

TransformNormal(SCNVector3, SCNMatrix4, SCNVector3)

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

TransformNormal(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to norm.

TransformNormalInverse(SCNVector3, SCNMatrix4, SCNVector3)

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

TransformNormalInverse(SCNVector3, SCNMatrix4)

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

TransformPerspective(SCNVector3, SCNMatrix4, SCNVector3)

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

TransformPerspective(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to vec.

TransformPosition(SCNVector3, SCNMatrix4, SCNVector3)

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

TransformPosition(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to vec.

TransformVector(SCNVector3, SCNMatrix4, SCNVector3)

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

TransformVector(SCNVector3, SCNMatrix4)

Applies the tranformation that is represented by mat to vec.

Operators

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

Applies to