Class | Eymiha::Point3 |
In: |
lib/eymiha/math3/point3.rb
|
Parent: | Object |
Point3 represents a 3D point in cartesian coordinates:
The cylindrical z coordinate is equal to the cartesian z coordinate.
Point3 instances may be converted to Point3s and Point3c instances, but information at the "boundaries" may be lost. Besides responding as a Point3, an instance will also respond like a Point3s and Point3c as it has a full complement of readers for the different coordinate systems.
x | [RW] | x coordinate reader and writer. |
y | [RW] | y coordinate reader and writer. |
z | [RW] | z coordinate reader and writer. |
Returns true if the coordinates of the instance are approximately equal to the coordinates of the given point, each coordinate less than a distance epsilon from the target.
Returns a new Point3 that is a distance d from the instance along the line to the Point3 e. If normalized is true, the d argument specifies the fraction of the distance from the instance (being 0) to e (being 1).
If normalize is false, the d argument specifies an absolute distance.