From Solid Graphics Wiki
The Point struct specifies a (x, y, z) location in 3D space using float precision.
Constructors
Struct constructors allow to initialize the point object from other point, or vector, or set of three float values, or float values array, or double values array.
Fields
| Field name
| Type
| Description
|
Methods
| (indexer)
| Allows to access point coordinates by index, index 0 returns x, index 1 returns y, index 2 returns z coordinate.
|
| Transform
| Transforms point coordinates using given matrix
|
| IsInside
| The function determines whether the point coordinates are inside of given object (BoundingBox, Shape or Triangle)
|
| Snaps
| The function returns true if a given point parameter is within bounding box defined by current point location and Settings.SnapDistance library (global) variable.
|
| AlignToGrid
| Aligns the point location onto a grid defined by given grid size and grid origin.
|
| Scale
| Multiplies the point coordinates by given scale parameter.
|
| Clamp
| Clamps point coordinates within given BoundingBox.
|
| SaveToString
| Saves the point coordinates to given string.
|
| SaveToXML
| Saves the point coordinates as XML node to given XmlWriter.
|
| LoadFromString
| Loads the point coordinates from given string.
|
| LoadFromXML
| Reads the point coordinates from given XmlReader.
|
Operators
| ==
| Returns true if given points are within a BoundingBox defined by the point and Settings.MinDistance (global) library variable.
|
| !=
| Returns true if given points are not within a BoundingBox defined by the point and Settings.MinDistance (global) library variable.
|
| +
| Adds coordinates of two points.
|
| -
| Subtracts coordinates of two points.
|
| *
| Multiplies point coordinates by given float constant.
|
| /
| Divides point coordinates by given float constant.
|
| *
| Returns new point object which is multiplication of the point by given float constant.
|
| -
| Unary opertor returns new point object with current point coordinate multiplied by -1.
|
See Also
|