pub struct Plane {
pub guid: String,
pub name: String,
_origin: Point,
_x_axis: Vector,
_y_axis: Vector,
_z_axis: Vector,
_a: f32,
_b: f32,
_c: f32,
_d: f32,
pub xform: Xform,
}
Fields§
§guid: String
§name: String
§_origin: Point
§_x_axis: Vector
§_y_axis: Vector
§_z_axis: Vector
§_a: f32
§_b: f32
§_c: f32
§_d: f32
§xform: Xform
Implementations§
Source§impl Plane
impl Plane
pub fn new(point: Point, x_axis: Vector, y_axis: Vector) -> Self
pub fn with_name( point: Point, x_axis: Vector, y_axis: Vector, name: String, ) -> Self
pub fn from_point_normal(point: Point, normal: Vector) -> Self
pub fn from_points(points: Vec<Point>) -> Self
pub fn from_two_points(point1: Point, point2: Point) -> Self
pub fn xy_plane() -> Self
pub fn yz_plane() -> Self
pub fn xz_plane() -> Self
pub fn origin(&self) -> Point
pub fn x_axis(&self) -> Vector
pub fn y_axis(&self) -> Vector
pub fn z_axis(&self) -> Vector
pub fn a(&self) -> f32
pub fn b(&self) -> f32
pub fn c(&self) -> f32
pub fn d(&self) -> f32
pub fn reverse(&mut self)
pub fn rotate(&mut self, angles_in_radians: f32)
pub fn is_right_hand(&self) -> bool
pub fn is_same_direction( plane0: &Plane, plane1: &Plane, can_be_flipped: bool, ) -> bool
pub fn is_same_position(plane0: &Plane, plane1: &Plane) -> bool
pub fn is_coplanar(plane0: &Plane, plane1: &Plane, can_be_flipped: bool) -> bool
Trait Implementations§
Source§impl AddAssign<Vector> for Plane
impl AddAssign<Vector> for Plane
Source§fn add_assign(&mut self, other: Vector)
fn add_assign(&mut self, other: Vector)
Performs the
+=
operation. Read moreSource§impl<'de> Deserialize<'de> for Plane
impl<'de> Deserialize<'de> for Plane
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Plane
impl RefUnwindSafe for Plane
impl Send for Plane
impl Sync for Plane
impl Unpin for Plane
impl UnwindSafe for Plane
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more