Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: PointD ProjectOntoCamera(Pt, Pt, Pt?)

  • Declared in: RT.Modeling.Pt

Declaration

public PointD ProjectOntoCamera(
    Pt cameraPosition,
    Pt cameraLookingAt,
    Pt? cameraUp = null
)

Summary

Projects a point onto a camera.

Parameters

PtcameraPosition The position of the camera in 3D space.
PtcameraLookingAt A point the camera is looking at.
Pt?cameraUp An optional vector defining the “up” direction of the camera. Default is the y-axis.

Returns

The projected 2D point.

See also