Programming API Reference: EduGraf.Tensors

Struct public readonly Vector4

This represents a displacement in 4d-space, i.e. homogeneous coordinates.
  • public static readonly Vector4 Zero
  • public static readonly Vector4 UnitX
  • public static readonly Vector4 UnitY
  • public static readonly Vector4 UnitZ
  • public static readonly Vector4 UnitW
  • Property public float X { get; }: -coordinate
    Property public float Y { get; }: -coordinate
    Property public float Z { get; }: -coordinate
    Property public float W { get; }: -coordinate
    Property public float[Elements { get; }: see interface property
    Property public float Length { get; }: the euclidean length of this vector

    Method public static Vector4 Normalize()

    Return a new vector in the same direction with length 1.

    Operator public static Vector4 -()

    Operator public static Vector4 +()

    Operator public static Vector4 -()

    Operator public static Vector4 *()

    Operator public static Vector4 *()

    Operator public static Vector4 *()

    Operator public static Vector4 *()

    Operator public static bool ==()

    Operator public static bool !=()

    Method public static float Dot()

    Ditto.
    Property public Vector3 Xyz { get }: Get this vector without the homogeneous coordinate.
    Indexer public float  this[]  { get }
    Get the coordinate-value by index.
    • int index