Class | Eymiha::Point3c |
In: |
lib/eymiha/math3/point3c.rb
|
Parent: | Object |
Point3c represents a 3D point in cylindrical coordinates:
The cylindrical theta coordinate is equal to the spherical theta. The cylindrical z coordinate is equal to the cartesian z coordinate.
From a cartesian reference, the cylindrical axis is the z axis, theta is measured using the right hand rule with the positive x axis representing 0, and the cylindrical plane is the plane z=0.
Point3c instances may be converted to Point3 and Point3s instances, but information at the "boundaries" may be lost. Besides responding as a Point3c, an instance will also respond like a Point3 and Point3s as it has a full complement of readers for the different coordinate systems.
c_radius | [RW] | cylindrical radius coordinate reader and writer. |
theta | [R] | cylindrical theta reader. |
z | [RW] | cylindrical z coordinate reader and writer. |
Returns true if the coordinates of the instance are effectively equal to the coordinates of the given point.
Returns true if the coordinates of the instance are approximately effectively equal to the coordinates of the given point, each coordinate less than a distance epsilon from the target.