point3ΒΆ
class point3
A 3 dimension point class
Members
| create | (
|
Builds a point3 (x, y, z) |
| create | (
|
Builds a point3 (x, x, x) |
| create | (
|
Builds a point3 (p[1], p[2], p[3]) |
| * | (
|
Returns self*other |
| + | (
|
Returns self+other |
| - | ( ) | Returns the opposite of self |
| - | (
|
Returns self-other |
| / | (
|
Returns self/other |
| ^ | (
|
Returns the cross product between self and other |
| distance | (
|
Returns the distance between self and other |
| dotproduct | (
|
Returns the dot product between self and other |
| getlength | ( ) | Returns the magnitude of the vector |
| getmax | (
|
Returns the max of each components |
| getmin | (
|
Returns the min of each components |
| getnormalized | ( ) | Returns the normalized vector |
| getsqlength | ( ) | Returns the squar magnitude of the vector |
| isreal | ( ) | Returns true if the point is a correct number, false if NAN or INF |
Documentation
Returns self*other
other
result
Returns self+other
other
result
Returns the opposite of self
result
Returns self-other
other
result
Returns self/other
other
result
Returns the cross product between self and other
other
result
Returns the distance between self and other
other
result
Returns the dot product between self and other
other
result
Returns the magnitude of the vector
result
Returns the max of each components
other
result (max (self.X, other.X), max (self.Y, other.Y), max (self.Z, other.Z))
Returns the min of each components
other
result (min (self.X, other.X), min (self.Y, other.Y), min (self.Z, other.Z))
Returns the normalized vector
result
Returns the squar magnitude of the vector
result
Returns true if the point is a correct number, false if NAN or INF
result