PointCloud
public struct PointCloud<Vector> where Vector : VectorType
A point-cloud container for discrete sets of points in space.
-
The points contained within this point-cloud.
Declaration
Swift
public var points: [Vector]
-
Initializes an empty point-cloud.
Declaration
Swift
public init()
-
Initializes a new point-cloud with a given sequence of points.
Declaration
Swift
@inlinable public init<S>(points: S) where Vector == S.Element, S : Sequence
-
Returns a copy of this point cloud, offset in space by
offset
.Declaration
Swift
@inlinable func translated(by offset: Vector) -> PointCloud<Vector>
-
Gets the minimal axis-aligned bounding box capable of containing this point cloud.
Declaration
Swift
@inlinable var bounds: AABB<Vector> { get }
-
Returns a copy of this point cloud, scaled in space towards the origin by
scale
.Declaration
Swift
@inlinable func scaled(by scale: Vector) -> PointCloud<Vector>
-
Returns a copy of this point cloud, scaled in space towards the given center point by
scale
.Declaration
Swift
@inlinable func scaled(by scale: Vector, around center: Vector) -> PointCloud<Vector>