Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
x
Source
y
Source
z
Source