Struct arcdps::evtc::effect::EffectOrientation
source · pub struct EffectOrientation {
pub x: i16,
pub y: i16,
pub z: i16,
}
Expand description
Fields§
§x: i16
§y: i16
§z: i16
Implementations§
source§impl EffectOrientation
impl EffectOrientation
sourcepub const fn new(x: i16, y: i16, z: i16) -> EffectOrientation
pub const fn new(x: i16, y: i16, z: i16) -> EffectOrientation
Creates a new effect orientation from radians in i16
representation.
sourcepub fn from_floats(x: f32, y: f32, z: f32) -> EffectOrientation
pub fn from_floats(x: f32, y: f32, z: f32) -> EffectOrientation
Creates a new effect orientation from radians in f32
representation.
sourcepub fn as_position(&self) -> Position
pub fn as_position(&self) -> Position
Converts the orientation to a Position
.
sourcepub fn as_rotation_matrix(&self) -> [[f32; 3]; 3]
pub fn as_rotation_matrix(&self) -> [[f32; 3]; 3]
Converts the orientation to a rotation matrix.
Trait Implementations§
source§impl Clone for EffectOrientation
impl Clone for EffectOrientation
source§fn clone(&self) -> EffectOrientation
fn clone(&self) -> EffectOrientation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EffectOrientation
impl Debug for EffectOrientation
source§impl<'de> Deserialize<'de> for EffectOrientation
impl<'de> Deserialize<'de> for EffectOrientation
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<EffectOrientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<EffectOrientation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EffectOrientation> for Position
impl From<EffectOrientation> for Position
source§fn from(orientation: EffectOrientation) -> Position
fn from(orientation: EffectOrientation) -> Position
Converts to this type from the input type.
source§impl PartialEq for EffectOrientation
impl PartialEq for EffectOrientation
source§fn eq(&self, other: &EffectOrientation) -> bool
fn eq(&self, other: &EffectOrientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EffectOrientation
impl Serialize for EffectOrientation
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for EffectOrientation
impl StructuralPartialEq for EffectOrientation
Auto Trait Implementations§
impl Freeze for EffectOrientation
impl RefUnwindSafe for EffectOrientation
impl Send for EffectOrientation
impl Sync for EffectOrientation
impl Unpin for EffectOrientation
impl UnwindSafe for EffectOrientation
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