geom/vector3f32.go

12 lines
250 B
Go
Raw Normal View History

package geom
// Vector3F32 is a vector of size 3 (floating point, 32 bits).
type Vector3F32 struct {
X, Y, Z float32
}
// Vec3F32 is a shorthand function to create a vector.
func Vec3F32(x, y, z float32) Vector3F32 {
return Vector3F32{x, y, z}
}