Skip to main content

embed_point

Function embed_point 

Source
pub fn embed_point<S: Scalar>(
    cp: &Vector3<S>,
    origin: &Vector3<S>,
    e1: &Vector3<S>,
    e2: &Vector3<S>,
) -> Vector4<S>
Expand description

Homogeneous (w (origin + x e1 + y e2), w) for the homogeneous 2-D point cp = (w x, w y, w): linear in cp, so no division.