Bezier2FPoint

public struct Bezier2FPoint : ConstructibleBezier2PointType, Hashable, CustomStringConvertible

An implementation of ConstructibleBezier2PointType with Float scalars.

  • Declaration

    Swift

    public typealias Scalar = Float
  • Returns the zero point, or (0.0, 0.0).

    Declaration

    Swift

    public static let zero: Bezier2FPoint
  • x

    Declaration

    Swift

    public var x: Scalar
  • y

    Declaration

    Swift

    public var y: Scalar
  • Declaration

    Swift

    public var description: String { get }
  • Creates a new 2-dimensional Bézier point with the specified coordinates.

    Declaration

    Swift

    @inlinable
    public init(x: Scalar, y: Scalar)
  • Creates a new 2-dimensional Bézier point with the specified value for both coordinates.

    Declaration

    Swift

    @inlinable
    public init(repeating scalar: Scalar)
  • Declaration

    Swift

    @inlinable
    public func lerp(to end: `Self`, factor: Double) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public func dot(_ other: `Self`) -> Scalar
  • Declaration

    Swift

    @inlinable
    public func leftRotated() -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public func rightRotated() -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public func angle() -> Scalar
  • Declaration

    Swift

    @inlinable
    public func rotated(by angleInRadians: Scalar) -> Bezier2FPoint
  • Declaration

    Swift

    public func transposed(along line: LinearBezier2<`Self`>) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public prefix static func - (value: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func + (lhs: `Self`, rhs: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func - (lhs: `Self`, rhs: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func * (lhs: `Self`, rhs: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func / (lhs: `Self`, rhs: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func * (lhs: `Self`, rhs: Scalar) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func * (lhs: Scalar, rhs: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func / (lhs: `Self`, rhs: Scalar) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func >= (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    @inlinable
    public static func > (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    @inlinable
    public static func < (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    @inlinable
    public static func <= (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    @inlinable
    public static func pointwiseMin(_ v1: `Self`, _ v2: `Self`) -> Bezier2FPoint
  • Declaration

    Swift

    @inlinable
    public static func pointwiseMax(_ v1: `Self`, _ v2: `Self`) -> Bezier2FPoint