12 lines
250 B
Go
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}
|
|
}
|