project_local

Function project_local 

Source
pub fn project_local(
    point: Point2d,
    origin: Point2d,
    x_axis: Vector2d,
    y_axis: Vector2d,
) -> Point2d
Expand description

Projects a point onto a local coordinate system.

ยงParameters

  • point - The point to project
  • origin - The origin of the coordinate system
  • x_axis - The basis vector pointing in the positive x-axis.
  • y_axis - The basis vector pointing in the positive y-axis.