pub struct Connector<T: Number = Scalar> {
pub origin: Vector3<T>,
pub axis: Vector3<T>,
pub reference: Vector3<T>,
}Expand description
A joint’s end on a body, in that body’s frame — or, placed, where its body puts it: where its axis passes, the axis, and the direction its turns are measured from — unit vectors, the reference square to the axis.
Fields§
§origin: Vector3<T>§axis: Vector3<T>§reference: Vector3<T>Implementations§
Source§impl Connector
impl Connector
Sourcepub fn new(
origin: Vector3,
axis: Vector3,
reference: Option<Vector3>,
) -> GeopResult<Self>
pub fn new( origin: Vector3, axis: Vector3, reference: Option<Vector3>, ) -> GeopResult<Self>
The connector at origin, along axis (any non-zero length), its
turns measured from reference made square to the axis — or, with
none given, from whichever of the body’s own axes x, y, z runs
least along it, made square to it: a free choice, and the
well-conditioned one. So two bodies drawn the same way round, mated
on the same axis of each, are at a turn of zero.
Sourcepub fn of(aspects: &Shape, face: bool) -> Option<GeopResult<Self>>
pub fn of(aspects: &Shape, face: bool) -> Option<GeopResult<Self>>
The connector aspects gives a joint where it is made of what the
entity is — an axis through a point it defines: a circular edge’s
center and normal, a sketch circle’s, or the origin and z axis of
a frame, turns measured from its x axis. Of anything else, there is
none: it is used by the frame it gives (see geop_ops_model::mate_entity::MateEntity::frame).