Documentation ¶
Index ¶
- type Vector3
- func (v *Vector3) Abs() *Vector3
- func (v *Vector3) Add(x, y, z float32) *Vector3
- func (v *Vector3) AddFromVector3(vector3 *Vector3) *Vector3
- func (v *Vector3) AsVector3() *Vector3
- func (v *Vector3) Ceil() *Vector3
- func (v *Vector3) Cross(vector3 *Vector3) *Vector3
- func (v *Vector3) Distance(pos *Vector3) float32
- func (v *Vector3) DistanceSquared(pos *Vector3) float32
- func (v *Vector3) Divide(num float32) *Vector3
- func (v *Vector3) Dot(pos *Vector3) float32
- func (v *Vector3) Equals(vector3 *Vector3) bool
- func (v *Vector3) Floor() *Vector3
- func (v *Vector3) GetIntermediateWithXValue(vector3 *Vector3, x float32) *Vector3
- func (v *Vector3) GetIntermediateWithYValue(vector3 *Vector3, y float32) *Vector3
- func (v *Vector3) GetIntermediateWithZValue(vector3 *Vector3, z float32) *Vector3
- func (v *Vector3) Length() float32
- func (v *Vector3) LengthSquared() float32
- func (v *Vector3) MaxPlainDistance(pos *Vector3) float32
- func (v *Vector3) Multiply(num float32) *Vector3
- func (v *Vector3) Normalize() *Vector3
- func (v *Vector3) Round() *Vector3
- func (v *Vector3) RoundToEven() *Vector3
- func (v *Vector3) SetComponents(x, y, z float32)
- func (v *Vector3) Subtract(x, y, z float32) *Vector3
- func (v *Vector3) SubtractFromVector3(vector3 *Vector3) *Vector3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vector3 ¶
type Vector3 struct {
X, Y, Z float32
}
func NewVector3 ¶
func (*Vector3) AddFromVector3 ¶
func (*Vector3) DistanceSquared ¶
func (*Vector3) GetIntermediateWithXValue ¶
GetIntermediateWithXValue returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or nil if not possible.
func (*Vector3) GetIntermediateWithYValue ¶
GetIntermediateWithYValue returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or nil if not possible.
func (*Vector3) GetIntermediateWithZValue ¶
GetIntermediateWithZValue returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or nil if not possible.
func (*Vector3) LengthSquared ¶
func (*Vector3) MaxPlainDistance ¶
func (*Vector3) RoundToEven ¶
func (*Vector3) SetComponents ¶
func (*Vector3) SubtractFromVector3 ¶
Click to show internal directories.
Click to hide internal directories.