PointNormal
public struct PointNormal<Vector> : GeometricType, CustomStringConvertible where Vector : VectorFloatingPoint
extension PointNormal: Equatable where Vector: Equatable
extension PointNormal: Hashable where Vector: Hashable
extension PointNormal: PlaneType where Vector: VectorFloatingPoint
Represents a point along with a normal on the surface of a geometry.
This point-normal pair type has more lax constraints compared to
PointNormalPlane.
-
Convenience for
Vector.ScalarDeclaration
Swift
public typealias Scalar = Vector.Scalar -
Declaration
Swift
public var description: String { get } -
A point on the surface of an object.
Declaration
Swift
public var point: Vector -
The surface normal of the shape at the point point.
Declaration
Swift
@UnitVector public var normal: Vector { get set } -
Declaration
Swift
public init(point: Vector, normal: Vector)
-
Declaration
Swift
public var pointOnPlane: Vector { get } -
Returns a
PointNormalPlanevalue initialized with this point normal’s parameters.Declaration
Swift
public var asPlane: PointNormalPlane<Vector> { get } -
Creates a
PointNormalthat wraps the given plane object.Declaration
Swift
public init<Plane>(_ plane: Plane) where Vector == Plane.Vector, Plane : PlaneType