Struct arcball_cgmath::ArcballCamera [] [src]

pub struct ArcballCamera<T: BaseFloat + Float> {
    // some fields omitted
}

Methods

impl<T: BaseFloat + Float> ArcballCamera<T>
[src]

Assumes all input x and y coordinates are in normalized screen coordinates [-1, 1] in x and y

fn new() -> ArcballCamera<T>

fn get_transform_mat(&self) -> Matrix4<T>

fn set_distance(&mut self, distance: T) -> &mut Self

fn set_rotation(&mut self, rotation: Basis3<T>) -> &mut Self

fn set_target(&mut self, target: Vector3<T>) -> &mut Self

fn set_spin_speed(&mut self, speed: T) -> &mut Self

fn set_zoom_speed(&mut self, speed: T) -> &mut Self

fn set_pan_speed(&mut self, speed: T) -> &mut Self

fn rotate_start(&mut self, pos: Vector2<T>)

fn rotate_end(&mut self)

fn pan_start(&mut self, pos: Vector2<T>)

fn pan_end(&mut self)

fn get_vec_on_ball(input: Vector2<T>) -> Vector3<T>

fn update(&mut self, cur_mouse: Vector2<T>)

fn zoom(&mut self, d: T)