Programming API Reference: EduGraf.Tensors

Class public Matrix4

: Tensor
This represents a matrix in 4d homogeneous space.

Constructor()

  • params float[elements
  • public static readonly Matrix4 Identity
  • Property public Matrix3 XYH { get }: TODO

    Method public static Matrix4 Scale()

    Create a new transformation matrix scaling in all axis directions by the same factor.
    • float factor

    Method public static Matrix4 Scale()

    Create a new transformation matrix scaling by varying factors in the different axis directions.
    • float x
    • float y
    • float z

    Method public static Matrix4 Scale()

    Create a new scaling matrix from a vector.

    Method public static Matrix4 Translation()

    Create a new transformation matrix representing translation by a vector.

    Method public static Matrix4 RotationX()

    Create a new transformation matrix representing rotation around the x axis.
    • float angle : in radians

    Method public static Matrix4 RotationY()

    Create a new transformation matrix representing rotation around the y axis.
    • float angle : in radians

    Method public static Matrix4 RotationZ()

    Create a new transformation matrix representing rotation around the z axis.
    • float angle : in radians

    Operator public static Matrix4 *()

    Operator public static Vector4 *()

    Indexer public float  this[]  { get; set; }
    Return matrix-elements.
    • int row
    • int col

    Method public Matrix4 Transposed()

    Ditto.

      Method public Vector3 GetRow3()

      TODO
      • int row

      Method public static Matrix4 GetView()

      Ditto.

      Method public static Matrix4 GetOrthographicProjection()

      Ditto.
      • float width
      • float height
      • float near
      • float far

      Method public static Matrix4 GetPerspectiveProjection()

      Ditto.
      • float fovY
      • float aspect
      • float near
      • float far

      Method public static Point3 GetProjectionCenter()

      TODO

      Method public static Matrix4 GetOffCenterProjection()

      Ditto.

      Method public static Matrix4 GetOffCenterPerspectiveProjection()

      Ditto.
      • float left
      • float right
      • float bottom
      • float top
      • float near
      • float far
      • bool toNear