use super::{Entity, EntityCommon};
use crate::types::{BoundingBox3D, Transform, Vector3};
#[derive(Debug, Clone, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Seqend {
pub common: EntityCommon,
}
impl Seqend {
pub fn new() -> Self {
Seqend {
common: EntityCommon::new(),
}
}
}
impl Default for Seqend {
fn default() -> Self {
Self::new()
}
}
impl Entity for Seqend {
fn common(&self) -> &super::EntityCommon {
&self.common
}
fn common_mut(&mut self) -> &mut super::EntityCommon {
&mut self.common
}
fn bounding_box(&self) -> BoundingBox3D {
BoundingBox3D::from_point(Vector3::ZERO)
}
fn translate(&mut self, _offset: Vector3) {
super::translate::translate_seqend(self, _offset);
}
fn entity_type(&self) -> &'static str {
"SEQEND"
}
fn apply_transform(&mut self, _transform: &Transform) {
super::transform::transform_seqend(self, _transform);
}
}