Vector4 Structure
A vector with four components.

Namespace: Aspose.ThreeD.Utilities
Assembly: Aspose.3D (in Aspose.3D.dll) Version: 20.3.0.0 (20.3)
Syntax
public struct Vector4 : IComparable<Vector4>

The Vector4 type exposes the following members.

Constructors
  NameDescription
Public methodVector4(Color)
Initializes a new instance of the Vector4 struct.
Public methodVector4(Vector3)
Initializes a new instance of the Vector4 struct.
Public methodVector4(Vector3, Double)
Initializes a new instance of the Vector4 struct.
Public methodVector4(Double, Double, Double)
Initializes a new instance of the Vector4 struct.
Public methodVector4(Double, Double, Double, Double)
Initializes a new instance of the Vector4 struct.
Methods
  NameDescription
Public methodCompareTo
Compare current vector to another instance.
Public methodEquals
Check if two vectors are equal
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Gets the hash code of this vector
(Overrides ValueTypeGetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodSet(Double, Double, Double)
Sets vector's xyz components at a time, w will be set to 1
Public methodSet(Double, Double, Double, Double)
Sets vector's all components at a time
Public methodToString
Returns a String that represents the current Vector4.
(Overrides ValueTypeToString.)
Operators
  NameDescription
Public operatorStatic memberAddition
Operator overloading for +
Public operatorStatic memberMultiply(Vector4, Vector4)
Operator overloading for *
Public operatorStatic memberMultiply(Vector4, Double)
Operator overloading for *
Public operatorStatic memberSubtraction
Operator overloading for - (minus)
Fields
  NameDescription
Public fieldw
The w component.
Public fieldx
The x component.
Public fieldy
The y component.
Public fieldz
The z component.
See Also