struct

Opal::Graphics::Vec3

Inherits Struct < Value < Object

3D Vector for coordinates, directions, and surface normals

Constructors

new(x : Float64, y : Float64, z : Float64)
Source

Instance methods

*(scalar : Float64) : Vec3
Source
+(other : Vec3) : Vec3
Source
-(other : Vec3) : Vec3
Source
cross(other : Vec3) : Vec3
Source
dot(other : Vec3) : Float64
Source
length
Source
normalize
Source