pub struct StandardAttribute {
pub position: Point3<f64>,
pub uv_coord: Option<Vector2<f64>>,
pub normal: Option<Vector3<f64>>,
}
Expand description
standard attribution
Fields§
§position: Point3<f64>
position
uv_coord: Option<Vector2<f64>>
texture uv coordinate
normal: Option<Vector3<f64>>
normal at vertex
Trait Implementations§
source§impl Clone for StandardAttribute
impl Clone for StandardAttribute
source§fn clone(&self) -> StandardAttribute
fn clone(&self) -> StandardAttribute
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 StandardAttribute
impl Debug for StandardAttribute
source§impl<'de> Deserialize<'de> for StandardAttribute
impl<'de> Deserialize<'de> for StandardAttribute
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<StandardAttribute, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<StandardAttribute, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<StandardAttribute> for StandardAttribute
impl PartialEq<StandardAttribute> for StandardAttribute
source§fn eq(&self, other: &StandardAttribute) -> bool
fn eq(&self, other: &StandardAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StandardAttribute
impl Serialize for StandardAttribute
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