Programming API Reference: EduGraf.Cameras

Class public abstract Projection

This is the abstraction for all projections. It is a mere collection of properties.
Property public float Near { get; }: distance of the view-frustum plane
Property public float Far { get; }: distance of the view-frustum plane

Method public abstract Matrix4 GetMatrix()

Return the projection matrix.
  • float aspect

Class public PerspectiveProjection

: Projection
Represents a centered perspective projection.
Property public float FovY { get; }: the field of view y angle in radians.

Method public override Matrix4 GetMatrix()

Ditto.
  • float aspect : projection plane width divided by height

Class public OffCenterPerspectiveProjection

: Projection
Represents an off-center perspective projection.
Property public Point3 Center { get; }: of the projection plane
Property public Vector3 Right { get; }: point on the border of the plane
Property public Vector3 Up { get; }: point on the border of the plane
Property public bool ToNear { get; }: Project to near-plane if true, else to the far-plane
Property public Point3 Camera { get; set; }: position

Method public override Matrix4 GetMatrix()

Ditto.
  • float aspect

Class public OrthographicProjection

: Projection
Represents an orthographic projection.
Property public float Scale { get; set; }: that is applied in the transformation to the projection plan.

Method public override Matrix4 GetMatrix()

Ditto.
  • float aspect