Bezier2DPoint
public struct Bezier2DPoint : ConstructibleBezier2PointType, Hashable, CustomStringConvertible
An implementation of ConstructibleBezier2PointType
with Double
scalars.
-
Declaration
Swift
public typealias Scalar = Double
-
Returns the zero point, or
(0.0, 0.0)
.Declaration
Swift
public static let zero: Bezier2DPoint
-
Declaration
Swift
public var x: Scalar
-
Declaration
Swift
public var y: Scalar
-
Declaration
Swift
public var description: String { get }
-
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) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public func dot(_ other: `Self`) -> Scalar
-
Declaration
Swift
@inlinable public func leftRotated() -> Bezier2DPoint
-
Declaration
Swift
@inlinable public func rightRotated() -> Bezier2DPoint
-
Declaration
Swift
@inlinable public func angle() -> Scalar
-
Declaration
Swift
@inlinable public func rotated(by angleInRadians: Scalar) -> Bezier2DPoint
-
Declaration
Swift
public func transposed(along line: LinearBezier2<`Self`>) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public prefix static func - (value: `Self`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func + (lhs: `Self`, rhs: `Self`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func - (lhs: `Self`, rhs: `Self`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func * (lhs: `Self`, rhs: `Self`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func / (lhs: `Self`, rhs: `Self`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func * (lhs: `Self`, rhs: Scalar) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func * (lhs: Scalar, rhs: `Self`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func / (lhs: `Self`, rhs: Scalar) -> Bezier2DPoint
-
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`) -> Bezier2DPoint
-
Declaration
Swift
@inlinable public static func pointwiseMax(_ v1: `Self`, _ v2: `Self`) -> Bezier2DPoint