Documentation ¶
Overview ¶
Package point represents a point in a left-handed 3D coordinate system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Point ¶
type Point struct {
// X, Y, and Z represent components in a left-handed 3D coordinate system
X, Y, Z float64
}
Point represents a point in a left-handed 3D coordinate system
func Add ¶
Add returns a new Point with components equal to the sum of the corresponding components in the passed Point and Vector.
func (*Point) Add ¶
Add modifies each component of this Point by setting each of them to the sum of the components in this Point and the passed Vector.
func (*Point) Equals ¶
Equals returns true if the passed Point is equal to this Point. Two Points are equal if their X, Y, Z components are equal.
Click to show internal directories.
Click to hide internal directories.