Lua
C++
Edit

Vec3

This structure describes a three-dimensional vector.

Property Type Description
x, r number x component of the vector
y, g number y component of the vector
z, b number z component of the vector
Vec3 Constructor Vec3(number x)
Vec3 Constructor Vec3(number x, number y, number z)
DistanceToPoint Method gets the distance to a point
Dot Method gets the vector dot product
Cross Method gets the vector cross product
Hsl Method converts an RGB value to HSL
Inverse Method gets the inverse vector
Length Method gets the vector length
Normalize Method gets the normalized vector
Reflect Method gets the reflected vector
Rgb Method converts an HSL value to RGB
Copyright © 2024 Ultra Software.
All rights reserved.