|
Matrix4x4CreateBillboard Method
|
Creates a spherical billboard that rotates around a specified object position.
Namespace:
Karamba.Geometry
Assembly:
KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static Matrix4x4 CreateBillboard(
Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 cameraUpVector,
Vector3 cameraForwardVector
)
Public Shared Function CreateBillboard (
objectPosition As Vector3,
cameraPosition As Vector3,
cameraUpVector As Vector3,
cameraForwardVector As Vector3
) As Matrix4x4
public:
static Matrix4x4 CreateBillboard(
Vector3 objectPosition,
Vector3 cameraPosition,
Vector3 cameraUpVector,
Vector3 cameraForwardVector
)
static member CreateBillboard :
objectPosition : Vector3 *
cameraPosition : Vector3 *
cameraUpVector : Vector3 *
cameraForwardVector : Vector3 -> Matrix4x4
Parameters
- objectPosition
- Type: Karamba.GeometryVector3
Position of the object the billboard will rotate around. - cameraPosition
- Type: Karamba.GeometryVector3
Position of the camera. - cameraUpVector
- Type: Karamba.GeometryVector3
The up vector of the camera. - cameraForwardVector
- Type: Karamba.GeometryVector3
The forward vector of the camera.
Return Value
Type:
Matrix4x4The created billboard matrix
See Also