class HT_Camera_Field
Auxiliary class for class HT_Camera, containing
a pair of floats used to define the camera
field of view. A companion class, HT_Camera_Field_D,
is double precision and similar in functionality.
For more information about camera classes and projection,
see the section "Camera
Classes," in chapter 2, "Heidi Architecture."
See Also
HT_Camera, HT_Camera_Field_D
(in files)
Data Members
float width, height
A pair of floats that specify the
rectangle in the view plane and centered on the origin, defining the view
frustum and used to define the screen mapping.
Synopsis
float width ()
Returns the data member width.
float height ()
Returns the data member height.
Operators
operator ==
Returns HK_True
if two HT_Camera_Field
values compare equally.
operator !=
Returns HK_True
if two HT_Camera_Field
values do not compare equally.
Constructor
HT_Camera_Field
Constructs an HT_Camera_Field
object.
HT_Camera_Field::HT_Camera_Field
Purpose
Initializes a new camera field object
Synopsis
HT_Camera_Field ()
HT_Camera_Field(float p_width, float p_height)
HT_Camera_Field (HT_Camera_Field_D const & fld)
Details
The first form, HT_Camera_Field(), initializes
width and height values to 2.0.
The second form copies the width and height
from the parameters.
The third form is for double precision.
HT_Camera_Field::operator
==
Purpose
Returns HK_True if two HT_Camera_Field
values compare equally.
Synopsis
HT_Boolean operator== (HT_Camera_Field const & compare) const
Details
Used to compare two field-of-view objects.
HT_Camera_Field::operator
!=
Purpose
Returns HK_True if two HT_Camera_Field
values do not compare equally
Synopsis
HT_Boolean operator!= (HT_Camera_Field const & compare) const
Details
Used to compare two field-of-view objects.