Camera.kl¶
Interfaces¶
Camera (interface)¶
バージョン 1.15.0 で追加.
Camera interface is implemented in case we require different kinds of camera objects to support the same interface. Any manipulable camera should implements this interface.
参考
InlineCamera, SGCameraToRTR
Functions¶
getAxis ? ( io Vec3 xAxis, io Vec3 yAxis, io Vec3 zAxis ) | |
Scalar | getFarDistance ? () |
Scalar | getFocalDistance ? () |
Scalar | getFovY ? () |
Vec3 | getGoalAngularVelocity ? () |
Vec3 | getGoalLinearVelocity ? () |
Mat44 | getMat44 ? () |
Scalar | getNearDistance ? () |
Scalar | getOrthographicFrustumHeight ? () |
Mat44 | getProjection ? () |
Boolean | isOrthographic ? () |
setFarDistance ! ( in Scalar farDistance ) | |
setFocalDistance ! ( in Scalar focalDistance ) | |
setFovY ! ( in Scalar fov ) | |
setFromMat44 ! ( in Mat44 mat44 ) | |
setFromPositionAndTarget ! ( in Vec3 position, in Vec3 target ) | |
setGoalAngularVelocity ! ( in Vec3 velocity ) | |
setGoalLinearVelocity ! ( in Vec3 velocity ) | |
setNearDistance ! ( in Scalar nearDistance ) | |
setOrthographic ! ( in Boolean ortho ) | |
setOrthographicFrustumHeight ! ( in Scalar height ) |
Functions in detail¶
Camera.getAxis? ( io Vec3 xAxis, io Vec3 yAxis, io Vec3 zAxis )
Scalar Camera.getFarDistance? ()
Get the far field distance
Scalar Camera.getFocalDistance? ()
Get the focal distance
Get the vertical field of view in radians
Vec3 Camera.getGoalAngularVelocity? ()
Get the angular velocity (camera’s rotation)
Vec3 Camera.getGoalLinearVelocity? ()
Get the linear velocity (camera’s translation)
Get the world matrix of this camera
Scalar Camera.getNearDistance? ()
Get the near field distance
Scalar Camera.getOrthographicFrustumHeight? ()
Get the orthographic frustrum height
Mat44 Camera.getProjection? ()
Get the projection matrix of this camera
Boolean Camera.isOrthographic? ()
Check if this camera uses orthographic projection
Camera.setFarDistance! ( in Scalar farDistance )
Set the far field distance
Camera.setFocalDistance! ( in Scalar focalDistance )
Set the focal distance
Camera.setFovY! ( in Scalar fov )
Set the vertical field of view in radians
Camera.setFromMat44! ( in Mat44 mat44 )
Set the current transform of the camera using a mat44.
Camera.setFromPositionAndTarget! ( in Vec3 position, in Vec3 target )
Set the current transform of the camera using a position and target values.
Camera.setGoalAngularVelocity! ( in Vec3 velocity )
Set the angular velocity
Camera.setGoalLinearVelocity! ( in Vec3 velocity )
Set the linear velocity
Camera.setNearDistance! ( in Scalar nearDistance )
Set the near field distance
Camera.setOrthographic! ( in Boolean ortho )
Set the camera as orthographic
Camera.setOrthographicFrustumHeight! ( in Scalar height )
Set the orthographic frustrum height