Programming API Reference: SharpGfx

Class public static Space

This class contains frequently used values and functions for geometric tranformations.
  • public static readonly Point2 Origin2:
  • public static readonly Point3 Origin3:
  • public static readonly Vector2 Zero2:
  • public static readonly Vector2 Unit2X:
  • public static readonly Vector2 Unit2Y:
  • public static readonly Vector3 Zero3:
  • public static readonly Vector3 Unit3X:
  • public static readonly Vector3 Unit3Y:
  • public static readonly Vector3 Unit3Z:
  • public static readonly Vector4 Zero4:
  • public static readonly Matrix4 Identity4:
  • Method public static Matrix2 Rotation2()

    Create a 2d rotation matrix.
    • float angle: in radians

    Method public static Matrix4 Scale4()

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

    Method public static Matrix4 Scale4()

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

    Method public static Matrix4 Scale4()

    Create a scaling matrix from a vector.

    Method public static Matrix4 Translation4()

    Create a transformation matrix representing translation by a vector.

    Method public static Matrix4 RotationX4()

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

    Method public static Matrix4 RotationY4()

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

    Method public static Matrix4 RotationZ4()

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