EdgeInsets2
public struct EdgeInsets2<Vector> where Vector : Vector2Type
extension EdgeInsets2: Equatable where Vector: Equatable, Scalar: Equatable
extension EdgeInsets2: Hashable where Vector: Hashable, Scalar: Hashable
extension EdgeInsets2: Encodable where Vector: Encodable, Scalar: Encodable
extension EdgeInsets2: Decodable where Vector: Decodable, Scalar: Decodable
Represents a 2D edge inset as relative inset values for each of the four edges of a rectangular 2D perimeter.
-
Convenience for
Vector.Scalar
Declaration
Swift
public typealias Scalar = Vector.Scalar
-
Declaration
Swift
public var left: Scalar
-
Declaration
Swift
public var top: Scalar
-
Declaration
Swift
public var right: Scalar
-
Declaration
Swift
public var bottom: Scalar
-
Declaration
Swift
public init(_ value: Scalar)
-
Declaration
Swift
static var zero: `Self` { get }
-
Declaration
Swift
func inset(rectangle: NRectangle<Vector>) -> NRectangle<Vector>