Class Fox::FXVec4d
In: rdoc-sources/FXVec4d.rb
Parent: Object

Methods

   *   +   -   /   ==   []   []=   clamp   cross   crosses?   distance   dot   hi   length   length2   lo   new   normalize   plane   plane   plane   plane  

Attributes

w  [RW] 
x  [RW] 
y  [RW] 
z  [RW] 

Public Class methods

Return an initialized FXVec4d instance.

Compute normalized plane equation ax + by + cz + d = 0.

Compute normalized plane equation ax + by + cz + d = 0.

Compute normalized plane equation ax + by + cz + d = 0.

Compute normalized plane equation ax + by + cz + d = 0.

Public Instance methods

Returns a new FXVec4d instance which is the negation of this one.

Returns a new FXVec4d instance obtained by memberwise multiplication of this vector‘s elements by the scalar n.

Returns a new FXVec4d instance obtained by memberwise addition of the other FXVec4d instance with this one.

Returns a new FXVec4d instance obtained by memberwise subtraction of the other FXVec4d instance from this one.

Returns a new FXVec4d instance obtained by memberwise division of this vector‘s elements by the scalar n. Raises ZeroDivisionError if n is identically zero.

Return true if this vector is equal to other.

Returns the element at index, where index is 0, 1 or 2. Raises IndexError if index is out of range.

Set the element at index to value and return value. Raises IndexError if index is out of range.

Clamp the values of this vector between limits lo and hi.

Return the cross product of this vector and other.

Return true if edge a-b crosses plane

Signed distance normalized plane and point

Returns the dot (scalar) product of this vector and other.

Return a new FXVec4d instance which is the greater of this vector and other.

Return the length (magnitude) of this vector.

Return the square of the length of this vector.

Return a new FXVec4d instance which is the lesser of this vector and other.

Return a new FXVec4d instance which is a normalized version of this one.

[Validate]