Module pavpen.geometry_calculator.float_vector_field_operations

class pavpen.geometry_calculator.float_vector_field_operations.FloatVectorFieldOperations[Vector][source]

Bases: VectorFieldOperations[float, Vector], Generic

Base class for VectorFieldOperations whose coordinates are floats

Knowing the type of the coordinates allows us to provide default implementations for some properties, and methods.

property multiplicative_negator: float[source]

The ‘-1’ scalar, i.e. x, such that for any vector (or scalar) v: v * x + v = 0

norm(value: Vector) float[source]
normalized(value: Vector) Vector[source]
projection_length_along(projected: Vector, direction: Vector) float[source]

The norm of the component of the projection of projected on direction

We recommend always calling this method with keyword arguments, since projected, and direction can easily be confused when unnamed.