Struct rute::auto::line_f_ffi::RULineFFuncs
source · #[repr(C)]pub struct RULineFFuncs {Show 27 fields
pub destroy: extern "C" fn(self_c: *const RUBase),
pub from_polar: extern "C" fn(self_c: *const RUBase, length: f32, angle: f32) -> RULineF,
pub is_null: extern "C" fn(self_c: *const RUBase) -> bool,
pub p1: extern "C" fn(self_c: *const RUBase) -> RUPointF,
pub p2: extern "C" fn(self_c: *const RUBase) -> RUPointF,
pub x1: extern "C" fn(self_c: *const RUBase) -> f32,
pub y1: extern "C" fn(self_c: *const RUBase) -> f32,
pub x2: extern "C" fn(self_c: *const RUBase) -> f32,
pub y2: extern "C" fn(self_c: *const RUBase) -> f32,
pub dx: extern "C" fn(self_c: *const RUBase) -> f32,
pub dy: extern "C" fn(self_c: *const RUBase) -> f32,
pub length: extern "C" fn(self_c: *const RUBase) -> f32,
pub set_length: extern "C" fn(self_c: *const RUBase, len: f32),
pub angle: extern "C" fn(self_c: *const RUBase) -> f32,
pub set_angle: extern "C" fn(self_c: *const RUBase, angle: f32),
pub angle_to: extern "C" fn(self_c: *const RUBase, l: *const RUBase) -> f32,
pub unit_vector: extern "C" fn(self_c: *const RUBase) -> RULineF,
pub normal_vector: extern "C" fn(self_c: *const RUBase) -> RULineF,
pub intersect: extern "C" fn(self_c: *const RUBase, l: *const RUBase, intersection_point: *const RUBase) -> u32,
pub angle_2: extern "C" fn(self_c: *const RUBase, l: *const RUBase) -> f32,
pub point_at: extern "C" fn(self_c: *const RUBase, t: f32) -> RUPointF,
pub center: extern "C" fn(self_c: *const RUBase) -> RUPointF,
pub set_p1: extern "C" fn(self_c: *const RUBase, p1: *const RUBase),
pub set_p2: extern "C" fn(self_c: *const RUBase, p2: *const RUBase),
pub set_points: extern "C" fn(self_c: *const RUBase, p1: *const RUBase, p2: *const RUBase),
pub set_line: extern "C" fn(self_c: *const RUBase, x1: f32, y1: f32, x2: f32, y2: f32),
pub to_line: extern "C" fn(self_c: *const RUBase) -> RULine,
}
Fields
destroy: extern "C" fn(self_c: *const RUBase)
from_polar: extern "C" fn(self_c: *const RUBase, length: f32, angle: f32) -> RULineF
is_null: extern "C" fn(self_c: *const RUBase) -> bool
p1: extern "C" fn(self_c: *const RUBase) -> RUPointF
p2: extern "C" fn(self_c: *const RUBase) -> RUPointF
x1: extern "C" fn(self_c: *const RUBase) -> f32
y1: extern "C" fn(self_c: *const RUBase) -> f32
x2: extern "C" fn(self_c: *const RUBase) -> f32
y2: extern "C" fn(self_c: *const RUBase) -> f32
dx: extern "C" fn(self_c: *const RUBase) -> f32
dy: extern "C" fn(self_c: *const RUBase) -> f32
length: extern "C" fn(self_c: *const RUBase) -> f32
set_length: extern "C" fn(self_c: *const RUBase, len: f32)
angle: extern "C" fn(self_c: *const RUBase) -> f32
set_angle: extern "C" fn(self_c: *const RUBase, angle: f32)
angle_to: extern "C" fn(self_c: *const RUBase, l: *const RUBase) -> f32
unit_vector: extern "C" fn(self_c: *const RUBase) -> RULineF
normal_vector: extern "C" fn(self_c: *const RUBase) -> RULineF
intersect: extern "C" fn(self_c: *const RUBase, l: *const RUBase, intersection_point: *const RUBase) -> u32
angle_2: extern "C" fn(self_c: *const RUBase, l: *const RUBase) -> f32
point_at: extern "C" fn(self_c: *const RUBase, t: f32) -> RUPointF
center: extern "C" fn(self_c: *const RUBase) -> RUPointF
set_p1: extern "C" fn(self_c: *const RUBase, p1: *const RUBase)
set_p2: extern "C" fn(self_c: *const RUBase, p2: *const RUBase)
set_points: extern "C" fn(self_c: *const RUBase, p1: *const RUBase, p2: *const RUBase)
set_line: extern "C" fn(self_c: *const RUBase, x1: f32, y1: f32, x2: f32, y2: f32)
to_line: extern "C" fn(self_c: *const RUBase) -> RULine
Trait Implementations
sourceimpl Clone for RULineFFuncs
impl Clone for RULineFFuncs
sourcefn clone(&self) -> RULineFFuncs
fn clone(&self) -> RULineFFuncs
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for RULineFFuncs
Auto Trait Implementations
impl RefUnwindSafe for RULineFFuncs
impl Send for RULineFFuncs
impl Sync for RULineFFuncs
impl Unpin for RULineFFuncs
impl UnwindSafe for RULineFFuncs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more