Struct dumbmath::line::Line3f [] [src]

pub struct Line3f {
    pub points: (Vec3f, Vec3f),
}

Line of infinite length represented by two distinct points it passes through.

Fields

Methods

impl Line3f
[src]

Create a new line. Return None if the input points are identical.

Find the closest points between two lines. The result is a pair of parametric points, the first for self and the second for line. If the lines are parallel then None is returned.

Adapted from "Real-Time Collision Detection" by Christer Ericson, published by Morgan Kaufmann Publishers, Copyright 2005 Elsevier Inc

Trait Implementations

impl Clone for Line3f
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Line3f
[src]

impl Debug for Line3f
[src]

Formats the value using the given formatter.

impl PartialEq for Line3f
[src]

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

This method tests for !=.