Struct ovr_sys::ovrFovPort

source ·
#[repr(C)]
pub struct ovrFovPort { pub _align: [u32; 0], pub UpTan: f32, pub DownTan: f32, pub LeftTan: f32, pub RightTan: f32, }
Expand description

Describes the up, down, left, and right angles of the field of view.

Field Of View (FOV) tangent of the angle units.

Note: For a standard 90 degree vertical FOV, we would have: { UpTan = tan(90 degrees / 2), DownTan = tan(90 degrees / 2) }.

Fields§

§_align: [u32; 0]§UpTan: f32

The tangent of the angle between the viewing vector and the top edge of the field of view.

§DownTan: f32

The tangent of the angle between the viewing vector and the bottom edge of the field of view.

§LeftTan: f32

The tangent of the angle between the viewing vector and the left edge of the field of view.

§RightTan: f32

The tangent of the angle between the viewing vector and the right edge of the field of view.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.