#[repr(C)]pub struct Plane {
pub m_normal: Vector3,
pub m_distance: f32,
}Expand description
Fields§
§m_normal: Vector3§m_distance: f32Implementations§
Source§impl Plane
impl Plane
Sourcepub fn get_normal(&mut self) -> Vector3
pub fn get_normal(&mut self) -> Vector3
get_normal() overload
Sourcepub fn get_distance(&mut self) -> f32
pub fn get_distance(&mut self) -> f32
get_distance() overload
Sourcepub fn ctor(
&mut self,
in_normal: impl Into<Vector3>,
in_point: impl Into<Vector3>,
)
pub fn ctor( &mut self, in_normal: impl Into<Vector3>, in_point: impl Into<Vector3>, )
.ctor(crate::unity_engine::vector3::Vector3, crate::unity_engine::vector3::Vector3) overload
Sourcepub fn raycast(&mut self, ray: impl Into<Ray>) -> (bool, f32)
pub fn raycast(&mut self, ray: impl Into<Ray>) -> (bool, f32)
Raycast(crate::unity_engine::ray::Ray, *mutf32) overload
Sourcepub fn to_string(&mut self) -> Il2CppString
pub fn to_string(&mut self) -> Il2CppString
ToString() overload
Source§impl Plane
impl Plane
pub fn get_normal_method_info() -> &'static MethodInfo
pub fn get_distance_method_info() -> &'static MethodInfo
pub fn ctor_method_info() -> &'static MethodInfo
pub fn raycast_method_info() -> &'static MethodInfo
pub fn to_string_method_info() -> &'static MethodInfo
Trait Implementations§
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)