Vector2
public struct Vector2
Two-dimensional Vector.
-
Length of a
Vector2
Declaration
Swift
public var length: Double { get }
-
X value.
Declaration
Swift
public let x: Double
-
Y value.
Declaration
Swift
public let y: Double