Struct mathf::vector::Point3[][src]

pub struct Point3 {
    pub x: f32,
    pub y: f32,
    pub z: f32,
}
Expand description

A 3D Point with x, y and z coordinates: Point3

Fields

x: f32y: f32z: f32

Implementations

Instantiates a new Point3 with x, y and z.

Creates a new Vector3 relative to position (0, 0, 0)

Instantiates a Point3 with (0, 0, 0)

Instantiates a Point3 with (1, 1, 1)

Transforms a Point 3 from one vectorspace to another via a matrix3x3 transform. Same as Point2 but with Point3, Matrix3x3 and Vector3.

Trait Implementations

Overloads + for Points and Vectors: P + PQ = Q

The resulting type after applying the + operator.

Formats the value using the given formatter. Read more

Implements the transform matrix of a point 3 into another point 3. The order should be matrix * point because of 3x3 * 3x1 = 3x1

The resulting type after applying the * operator.

Implements the transform matrix of a point 3 into another point 3. The order should be matrix * point because of 3x3 * 3x1 = 3x1

The resulting type after applying the * operator.

Implements the dot product of &Point3 and &Vector3 as ‘*’.

The resulting type after applying the * operator.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.