class Prism::Maths::Vector3f
  
  - Prism::Maths::Vector3f
 - Reference
 - Object
 
Direct Known Subclasses
Defined in:
prism/maths/vector3f.crConstructors
Instance Method Summary
- 
        #*(r : Vector3f) : Vector3f
        
          
Multiplies two vectors
 - 
        #*(r : Float32) : Vector3f
        
          
Multiplies the vector with a scalar
 - 
        #+(r : Vector3f) : Vector3f
        
          
Adds two vectors
 - 
        #+(r : Float32) : Vector3f
        
          
Adds a scalar value to the vector
 - 
        #-(r : Vector3f) : Vector3f
        
          
Subtracts two vectors
 - 
        #-(r : Float32) : Vector3f
        
          
Subtracts a scalar value from the vector
 - 
        #/(r : Vector3f) : Vector3f
        
          
Divides two vectors
 - 
        #/(r : Float32) : Vector3f
        
          
Divides the vector by a scalar
 - #==(r : Vector3f) : Bool
 - #abs : Vector3f
 - 
        #clone
        
          
Returns a copy of the vector
 - 
        #cross(other : Vector3f) : Vector3f
        
          
Returns the cross product of the vectors
 - 
        #dot(r : Vector3f) : Float32
        
          
Returns the dot product of the vectors
 - 
        #length : Float32
        
          
Returns the length the vector (pythagorean theorem)
 - 
        #lerp(dest : Vector3f, lerp_factor : Float32) : Vector3f
        
          
Linear interpolation
 - 
        #max
        
          
Returns the maximum component size
 - 
        #normalize!
        
          
Normalizes this vector
 - #reflect(q : Quaternion)
 - 
        #rotate(axis : Vector3f, angle : Float32) : Vector3f
        
          
Rotates the vector by some angle
 - #rotate(rotation : Quaternion) : Vector3f
 - #set(x : Float32, y : Float32, z : Float32)
 - #set(r : Vector3f)
 - 
        #to_normalized
        
          
Returns a new normalized vector.
 - 
        #to_s
        
          
Returns a nicely readable and concise string representation of this object, typically intended for users.
 - #x : Float32
 - #x=(x : Float32)
 - #xy : Vector2f
 - #xz : Vector2f
 - #y : Float32
 - #y=(y : Float32)
 - #yx : Vector2f
 - #yz : Vector2f
 - #z : Float32
 - #z=(z : Float32)
 - #zx : Vector2f
 - #zy : Vector2f
 
Constructor Detail
Instance Method Detail
Rotates the vector by some angle
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.