Documentation
¶
Index ¶
- Constants
- func Add(l *proto.Vector3, r *proto.Vector3) *proto.Vector3
- func CreateVector2(x float64, y float64) proto.Vector2
- func CreateVector3(x float64, y float64, z float64) proto.Vector3
- func CreateVector4(x float64, y float64, z float64, w float64) proto.Vector4
- func Cross(l *proto.Vector3, r *proto.Vector3) *proto.Vector3
- func Distance(l *proto.Vector3, r *proto.Vector3) float64
- func Dot(l *proto.Vector3, r *proto.Vector3) float64
- func IsAlmostIntersecting(p1 *proto.Physic, p2 *proto.Physic) bool
- func IsEqualVector3(v1 *proto.Vector3, v2 *proto.Vector3) bool
- func IsInColor(test *proto.Vector3, colors []*proto.ColorParameter) bool
- func IsIntersecting(p1 *proto.Physic, p2 *proto.Physic) bool
- func Length(vec3 *proto.Vector3) float64
- func Minus(l *proto.Vector3, r *proto.Vector3) *proto.Vector3
- func Normalize(vec3 *proto.Vector3) *proto.Vector3
- func ProjectOnPlane(vec3 *proto.Vector3, normal *proto.Vector3) *proto.Vector3
- func RadiusFromVolume(volume float64) float64
- func RandomNormalizeVec3() *proto.Vector3
- func RandomVec3() *proto.Vector3
- func TimeSecondNow() float64
- func Times(vec3 *proto.Vector3, val float64) *proto.Vector3
Constants ¶
View Source
const ( AlmostIntersect = 0.99 Gravity = 6.67430e-11 )
Variables ¶
This section is empty.
Functions ¶
func ProjectOnPlane ¶
func RadiusFromVolume ¶
func RandomNormalizeVec3 ¶
func RandomVec3 ¶
func TimeSecondNow ¶
func TimeSecondNow() float64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.