Documentation ¶
Index ¶
- func DegToRad[T float](deg T) (rad T)
- func RadToDeg[T float](rad T) (deg T)
- type Mat4
- func LookAtRH[T float](eye, center, up Vec3[T]) Mat4[T]
- func Mat4FromAngleZ[T float](thetaRad T) Mat4[T]
- func Mat4FromQuaternion[T float](quat Quaternion[T]) Mat4[T]
- func Mat4FromTranslation[T float](v Vec3[T]) Mat4[T]
- func Perspective[T float](fovYRad, aspect, near, far T) Mat4[T]
- func PerspectiveRH[T float](fovYrad, aspectRatio, zNear, zFar T) Mat4[T]
- type Quaternion
- type Vec3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mat4 ¶
type Mat4[T float] [16]T
func Mat4FromAngleZ ¶
func Mat4FromAngleZ[T float](thetaRad T) Mat4[T]
func Mat4FromQuaternion ¶
func Mat4FromQuaternion[T float](quat Quaternion[T]) Mat4[T]
func Mat4FromTranslation ¶
func Perspective ¶
func Perspective[T float](fovYRad, aspect, near, far T) Mat4[T]
func PerspectiveRH ¶
func PerspectiveRH[T float](fovYrad, aspectRatio, zNear, zFar T) Mat4[T]
type Quaternion ¶
type Quaternion[T float] struct { V Vec3[T] S T }
func QuaternionFromAxisAngle ¶
func QuaternionFromAxisAngle[T float](axis Vec3[T], angleRad T) Quaternion[T]
func (Quaternion[T]) Mul ¶
func (lhs Quaternion[T]) Mul(rhs Quaternion[T]) Quaternion[T]
Click to show internal directories.
Click to hide internal directories.