geom/vector3f32.go
Sander Schobers 386eb28f11 Added Matrix3x3F32 and Vector3F32.
Added shorthand for creating a PointF32.
2018-07-18 20:05:06 +02:00

12 lines
250 B
Go

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}
}