Vector3 Structure
A vector with three components.

Namespace: Aspose.ThreeD.Utilities
Assembly: Aspose.3D (in Aspose.3D.dll) Version: 21.5.0.0 (21.5)
Syntax
public struct Vector3 : IComparable<Vector3>

The Vector3 type exposes the following members.

Constructors
  NameDescription
Public methodVector3(Double)
Initializes a new instance of the Vector3 struct.
Public methodVector3(Color)
Initializes a new instance of the Vector3 struct.
Public methodVector3(FVector3)
Initializes a new instance of the Vector3 struct.
Public methodVector3(Vector4)
Initializes a new instance of the Vector3 struct.
Public methodVector3(Double, Double, Double)
Initializes a new instance of the Vector3 struct.
Properties
  NameDescription
Public propertyLength
Gets the length of this vector.
Public propertyLength2
Gets the square of the length.
Methods
  NameDescription
Public methodAngleBetween(Vector3)
Calculate the inner angle between two direction Two direction can be non-normalized vectors
Public methodAngleBetween(Vector3, Vector3)
Calculate the inner angle between two direction Two direction can be non-normalized vectors
Public methodCompareTo
Compare current vector to another instance.
Public methodCos
Calculates cosine on each component
Public methodCross
Cross product of two vectors
Public methodDot
Gets the dot product of two vectors
Public methodEquals
Check if two vector3 equals
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Gets the hash code of Vector3
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodNormalize
Normalizes this instance.
Public methodSet
Sets the x/y/z component in one call.
Public methodSin
Calculates sine on each component
Public methodToString
Returns a String that represents the current Vector3.
(Overrides ValueTypeToString.)
Operators
  NameDescription
Public operatorStatic memberAddition
Operator overloading for +
Public operatorStatic memberDivision
Operator overloading for /
Public operatorStatic memberEquality
Equal operator for Vector3
Public operatorStatic member(Vector3 to FVector3)
Public operatorStatic memberInequality
Not-equal operator for Vector3
Public operatorStatic memberMultiply(Double, Vector3)
Operator overloading for *
Public operatorStatic memberMultiply(Vector3, Vector3)
Operator overloading for *
Public operatorStatic memberMultiply(Vector3, Double)
Operator overloading for *
Public operatorStatic memberSubtraction
Operator overloading for - (minus)
Public operatorStatic memberUnaryNegation
Operator overloading for -
Fields
  NameDescription
Public fieldStatic memberOrigin
Gets the origin position.
Public fieldStatic memberUnitScale
Gets the unit scale vector.
Public fieldx
The x component.
Public fieldStatic memberXAxis
Gets the X axis.
Public fieldy
The y component.
Public fieldStatic memberYAxis
Gets the Y axis.
Public fieldz
The z component.
Public fieldStatic memberZAxis
Gets the Z axis.
See Also