Struct arcdps::evtc::effect::EffectOrientation
pub struct EffectOrientation {
pub x: i16,
pub y: i16,
pub z: i16,
}
Expand description
Fields§
§x: i16
§y: i16
§z: i16
Implementations§
§impl EffectOrientation
impl EffectOrientation
pub 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.
pub 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.
pub fn as_position(&self) -> Position
pub fn as_position(&self) -> Position
Converts the orientation to a Position
.
pub 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§
§impl Clone for EffectOrientation
impl Clone for EffectOrientation
§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 more§impl Debug for EffectOrientation
impl Debug for EffectOrientation
§impl<'de> Deserialize<'de> for EffectOrientation
impl<'de> Deserialize<'de> for EffectOrientation
§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
§impl From<[i16; 3]> for EffectOrientation
impl From<[i16; 3]> for EffectOrientation
§fn from(value: [i16; 3]) -> EffectOrientation
fn from(value: [i16; 3]) -> EffectOrientation
Converts to this type from the input type.
§impl From<EffectOrientation> for Position
impl From<EffectOrientation> for Position
§fn from(orientation: EffectOrientation) -> Position
fn from(orientation: EffectOrientation) -> Position
Converts to this type from the input type.
§impl PartialEq for EffectOrientation
impl PartialEq for EffectOrientation
§impl Serialize for EffectOrientation
impl Serialize for EffectOrientation
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)