Enum trackball::Fixed[][src]

pub enum Fixed<N: Copy + RealField> {
    Hor(N),
    Ver(N),
    Upp(N),
}
Expand description

Fixed quantity wrt field of view.

  • Implements Default and can be created with Fixed::default() returning Fixed::Ver(N::frac_pi_4()).
  • Implements From<N> and can be created with N::into() returning Fixed::Ver().

Variants

Hor(N)

Tuple Fields

0: N

Fixed horizontal field of view aka Vert- scaling.

Ver(N)

Tuple Fields

0: N

Fixed vertical field of view aka Hor+ scaling.

Upp(N)

Tuple Fields

0: N

Fixed unit per pixel on focus plane at distance from eye of one aka Pixel-based scaling.

Implementations

Converts to fixed horizontal field of view wrt maximum position in screen space.

Converts to fixed vertical field of view wrt maximum position in screen space.

Converts to fixed unit per pixel on focus plane at distance from eye of one wrt maximum position in screen space.

Maximum position in camera space and unit per pixel on focus plane wrt distance between eye and target and maximum position in screen space.

Underlying quantity.

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

Returns the “default value” for a type. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

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.