The CameraInfo is used by various components of the Tinman SDK. It serves as a data container for the position and direction of the scene camera, in terrain-space.
sealed class
|
CameraInfo
|
The camera direction vector, in terrain-space.
public
property
|
Direction
{
get
set
}
|
||
type
|
Vec3D
|
||
value
|
The normalized direction vector. |
The camera position, in terrain-space.
public
property
|
Position
{
get
set
}
|
||
type
|
Vec3D
|
||
value
|
The position. |
The camera side vector, in terrain-space.
public
property
|
Side
{
get
set
}
|
||
type
|
Vec3D
|
||
value
|
The normalized side vector. |
The camera up vector, in terrain-space.
public
property
|
Up
{
get
set
}
|
||
type
|
Vec3D
|
||
value
|
The normalized up vector. |
Creates a new instance of CameraInfo.
public
constructor
|
CameraInfo
()
|
Remarks:
The camera position will be at the coordinate origin.
Returns the Z-coordinate of the given point in camera-space.
public
method
|
ComputeZ
(Vec3D v)
|
||
type
|
float64
|
||
params
|
v
|
Coordinate of point. | |
returns
|
The Z-coordinate in camera-space. |
Returns the Z-coordinate of the given point in camera-space.
public
method
|
ComputeZ
(float64 x,
float64 y,
float64 z)
|
||
type
|
float64
|
||
params
|
x
|
X-coordinate of point, in terrain-space. | |
y
|
Y-coordinate of point, in terrain-space. | ||
z
|
Z-coordinate of point, in terrain-space. | ||
returns
|
The Z-coordinate in camera-space. |
Returns the distance between the given point and the camera position.
public
method
|
Distance
(Vec3D v)
|
||
type
|
float64
|
||
params
|
v
|
Coordinate of point, in terrain-space. | |
returns
|
The distance, in terrain-space. |
Returns the distance between the given point and the camera position.
public
method
|
Distance
(float64 x,
float64 y,
float64 z)
|
||
type
|
float64
|
||
params
|
x
|
X-coordinate of point, in terrain-space. | |
y
|
Y-coordinate of point, in terrain-space. | ||
z
|
Z-coordinate of point, in terrain-space. | ||
returns
|
The distance, in terrain-space. |
Returns the square distance between the given point and the camera position.
public
method
|
DistanceSqr
(Vec3D v)
|
||
type
|
float64
|
||
params
|
v
|
Coordinate of point, in terrain-space. | |
returns
|
The square distance, in terrain-space. |
Returns the square distance between the given point and the camera position.
public
method
|
DistanceSqr
(float64 x,
float64 y,
float64 z)
|
||
type
|
float64
|
||
params
|
x
|
X-coordinate of point, in terrain-space. | |
y
|
Y-coordinate of point, in terrain-space. | ||
z
|
Z-coordinate of point, in terrain-space. | ||
returns
|
The square distance, in terrain-space. |
Computes the eye vector for the given point (direction from point to camera).
public
method
|
Eye
(Vec3D v)
|
||
type
|
Vec3D
|
||
params
|
v
|
The point. | |
returns
|
The eye vector. |
Computes the eye vector for the given point (direction from point to camera).
public
method
|
Eye
(float64 x,
float64 y,
float64 z)
|
||
type
|
Vec3D
|
||
params
|
x
|
X-coordinate of point. | |
y
|
Y-coordinate of point. | ||
z
|
Z-coordinate of point. | ||
returns
|
The eye vector. |
public
method
|
Local
(Vec3D v)
|
||
type
|
Vec3D
|
||
params
|
v
|
public
method
|
Local
(float64 x,
float64 y,
float64 z)
|
||
type
|
Vec3D
|
||
params
|
x
|
||
y
|
|||
z
|