|
| | Vec3 (float x=0f, float y=0f, float z=0f, float w=-1f) |
| | Initializes a new instance of the Vec3 struct.
|
| |
| | Vec3 (Vec3 c, float w=-1) |
| | Initializes a new instance of the Vec3 struct.
|
| |
| | Vec3 (Vec2 xy, float z=0f, float w=-1f) |
| | Initializes a new instance of the Vec3 struct.
|
| |
| | Vec3 (Vector3 vector3) |
| |
| override bool | Equals (object obj) |
| | Determines whether the specified generic object is equal to this instance.
|
| |
| override int | GetHashCode () |
| | Returns a hash code for this instance. This value changes when one of the X, Y, or Z values changes. Therefore, do not put Vec3 objects to a Hash table. If you have to, then do not change any of the values of the object after it is put to a Hash table.
|
| |
| Vec3 | NormalizedCopy () |
| |
| float | Normalize () |
| | Normalizes current vector.
|
| |
| Vec3 | ClampedCopy (float min, float max) |
| |
| Vec3 | ClampedCopy (float min, float max, out bool valueClamped) |
| |
| void | NormalizeWithoutChangingZ () |
| | Normalizes current vector without changing Z component.
|
| |
| bool | NearlyEquals (Vec3 v, float epsilon=MBMath.Epsilon) |
| | Checks if vector is nearly equals to another vector.
|
| |
| void | RotateAboutX (float a) |
| | Rotates the vector about X axis.
|
| |
| void | RotateAboutY (float a) |
| | Rotates the vector about Y axis.
|
| |
| void | RotateAboutZ (float a) |
| | Rotates the vector about Z axis.
|
| |
| Vec3 | RotateAboutAnArbitraryVector (Vec3 vec, float a) |
| | Rotates the vector about param vector.
|
| |
| Vec3 | Reflect (Vec3 normal) |
| |
| Vec3 | ProjectOnUnitVector (Vec3 ov) |
| |
| float | DistanceSquared (Vec3 v) |
| | Square of the length of distance from v.
|
| |
| float | Distance (Vec3 v) |
| | The length of distance from v.
|
| |
| override string | ToString () |
| | Creates readable string representation.
|
| |
|
| static Vec3 | Abs (Vec3 vec) |
| |
| static | operator Vector3 (Vec3 vec3) |
| |
| static float | DotProduct (Vec3 v1, Vec3 v2) |
| | Dot product of two vectors.
|
| |
| static Vec3 | Lerp (Vec3 v1, Vec3 v2, float alpha) |
| |
| static Vec3 | Slerp (Vec3 start, Vec3 end, float percent) |
| |
| static Vec3 | Vec3Max (Vec3 v1, Vec3 v2) |
| | Returns maximum of each component of two vectors.
|
| |
| static Vec3 | Vec3Min (Vec3 v1, Vec3 v2) |
| | Returns minimum of each component of two vectors.
|
| |
| static Vec3 | CrossProduct (Vec3 va, Vec3 vb) |
| | Cross product of two vectors.
|
| |
| static Vec3 | operator- (Vec3 v) |
| | Implements the operator -.
|
| |
| static Vec3 | operator+ (Vec3 v1, Vec3 v2) |
| | Implements the operator +.
|
| |
| static Vec3 | operator- (Vec3 v1, Vec3 v2) |
| | Implements the operator -.
|
| |
| static Vec3 | operator* (Vec3 v, float f) |
| | Implements scalar to vector product.
|
| |
| static Vec3 | operator* (float f, Vec3 v) |
| |
| static Vec3 | operator* (Vec3 v, MatrixFrame frame) |
| |
| static Vec3 | operator/ (Vec3 v, float f) |
| | Implements vector and float division. Internally, the division is converted to a multiplication for performance reasons.
|
| |
| static bool | operator== (Vec3 v1, Vec3 v2) |
| | Implements the operator ==.
|
| |
| static bool | operator!= (Vec3 v1, Vec3 v2) |
| | Implements the operator !=.
|
| |
| static float | AngleBetweenTwoVectors (Vec3 v1, Vec3 v2) |
| |
| static Vec3 | Parse (string input) |
| |
|
| float | X [get] |
| |
| float | Y [get] |
| |
| float | Z [get] |
| |
| float | this[int i] [get, set] |
| | Gets or sets the vector value with the specified index.
|
| |
| float | Length [get] |
| | Calculates and returns the length of the vector.
|
| |
| float | LengthSquared [get] |
| | Calculates and returns the square of the length of the vector.
|
| |
| bool | IsValid [get] |
| | Determines if all (XYZ) components are valid (not NaN or Infinite) or not.
|
| |
| bool | IsValidXYZW [get] |
| | Determines if all (XYZW) components are valid (not NaN or Infinite) or not.
|
| |
| bool | IsUnit [get] |
| | Determines whether vector is unit. <c>true</c> if vector is unit; otherwise, <c>false</c>.
|
| |
| bool | IsNonZero [get] |
| | Determines whether if vector is non zero. <c>true</c> if vector is non zero; otherwise, <c>false</c>.
|
| |
| Vec2 | AsVec2 [get, set] |
| | Returns new Vec2 from X,Y components, discards Z.
|
| |
| uint | ToARGB [get] |
| |
| float | RotationZ [get] |
| | Rotation angle about the up/z-axis. Yaw rotation value. Value is in radians.
|
| |
| float | RotationX [get] |
| | Rotation angle about the side/x-axis. Pitch rotation value. Value is in radians.
|
| |