LineMultiplicative

public protocol LineMultiplicative : LineAdditive where Self.Vector : VectorMultiplicative

Protocol for objects that form geometric lines with two VectorMultiplicative vectors representing two points on the line.

  • Returns a new line with the end-points of this line scaled by vector around the origin.

    Declaration

    Swift

    func withPointsScaledBy(_ factor: Vector) -> Self
  • Returns a new line with the end-points of this line scaled by vector around a given center point.

    Declaration

    Swift

    func withPointsScaledBy(_ factor: Vector, around center: Vector) -> Self