struct CG2d::Vec3(T)
 
  - CG2d::Vec3(T)
 - Struct
 - Value
 - Object
 
Defined in:
cg2d/vec3.crConstructors
Macro Summary
Instance Method Summary
- 
        #%(other : Vec)
        
          
Applies
%to all component of this vector with the corresponding component of other - 
        #%(n : Int | Float)
        
          
Applies
%to all component of this vector with n - 
        #*(other : Vec)
        
          
Applies
#*to all component of this vector with the corresponding component of other - 
        #*(n : Int | Float)
        
          
Applies
#*to all component of this vector with n - 
        #**(other : Vec)
        
          
Applies
#**to all component of this vector with the corresponding component of other - 
        #**(n : Int | Float)
        
          
Applies
#**to all component of this vector with n - 
        #+(other : Vec)
        
          
Applies
#+to all component of this vector with the corresponding component of other - 
        #+(n : Int | Float)
        
          
Applies
#+to all component of this vector with n - 
        #-(other : Vec)
        
          
Applies
#-to all component of this vector with the corresponding component of other - 
        #-(n : Int | Float)
        
          
Applies
#-to all component of this vector with n - 
        #-
        
          
Calls
#-on all components of this vector - 
        #/(other : Vec)
        
          
Applies
#/to all component of this vector with the corresponding component of other - 
        #/(n : Int | Float)
        
          
Applies
#/to all component of this vector with n - 
        #//(other : Vec)
        
          
Applies
#//to all component of this vector with the corresponding component of other - 
        #//(n : Int | Float)
        
          
Applies
#//to all component of this vector with n - 
        #<(other : Vec3)
        
          
Tests if all components of each vector meet the
<condition - 
        #<(n : Int | Float)
        
          
Tests if all components of this vector meet the
<condition with the given n - 
        #<=(other : Vec3)
        
          
Tests if all components of each vector meet the
<=condition - 
        #<=(n : Int | Float)
        
          
Tests if all components of this vector meet the
<=condition with the given n - 
        #==(other : Vec3)
        
          
Tests if all components of each vector meet the
#==condition - 
        #==(n : Int | Float)
        
          
Tests if all components of this vector meet the
#==condition with the given n - 
        #>(other : Vec3)
        
          
Tests if all components of each vector meet the
>condition - 
        #>(n : Int | Float)
        
          
Tests if all components of this vector meet the
>condition with the given n - 
        #>=(other : Vec3)
        
          
Tests if all components of each vector meet the
>=condition - 
        #>=(n : Int | Float)
        
          
Tests if all components of this vector meet the
>=condition with the given n - 
        #abs
        
          
Calls
#abson all components of this vector - 
        #cross(other : Vec3)
        
          
Calculates the cross product of this vector and other
 - 
        #distance(other : Vec3)
        
          
Returns the distance between this vector and other
 - 
        #dot(other : Vec3)
        
          
Returns the dot product of this vector and other
 - 
        #magnitude
        
          
The length or magnitude of the vector calculated by the Pythagorean theorem
 - 
        #normal(other : Vec3)
        
          
Returns normalized value at a normal to the current vector
 - 
        #normalized
        
          
Returns a new normalized unit
Vec3 - 
        #sum
        
          
Add all components together
 - 
        #to_f
        
          
Convert the components in this vector to Float64
 - 
        #to_f32
        
          
Convert the components in this vector to Float32
 - 
        #to_f64
        
          
Convert the components in this vector to Float64
 - 
        #to_i
        
          
Convert the components in this vector to Int32
 - 
        #to_i128
        
          
Convert the components in this vector to Int128
 - 
        #to_i16
        
          
Convert the components in this vector to Int16
 - 
        #to_i32
        
          
Convert the components in this vector to Int32
 - 
        #to_i64
        
          
Convert the components in this vector to Int64
 - 
        #to_i8
        
          
Convert the components in this vector to Int8
 - 
        #to_u
        
          
Convert the components in this vector to UInt32
 - 
        #to_u128
        
          
Convert the components in this vector to UInt128
 - 
        #to_u16
        
          
Convert the components in this vector to UInt16
 - 
        #to_u32
        
          
Convert the components in this vector to UInt32
 - 
        #to_u64
        
          
Convert the components in this vector to UInt64
 - 
        #to_u8
        
          
Convert the components in this vector to UInt8
 - #x : T
 - #x=(x : T)
 - #y : T
 - #y=(y : T)
 - #z : T
 - #z=(z : T)
 
Constructor Detail
Macro Detail
Instance Method Detail
Applies % to all component of this vector with the corresponding component of other
Applies #* to all component of this vector with the corresponding component of other
Applies #** to all component of this vector with the corresponding component of other
Applies #+ to all component of this vector with the corresponding component of other
Applies #- to all component of this vector with the corresponding component of other
Applies #/ to all component of this vector with the corresponding component of other
Applies #// to all component of this vector with the corresponding component of other
Tests if all components of this vector meet the < condition with the given n
Tests if all components of this vector meet the <= condition with the given n
Tests if all components of this vector meet the #== condition with the given n
Tests if all components of this vector meet the > condition with the given n
Tests if all components of this vector meet the >= condition with the given n