Header menu logo Nu

Segment3 Type

Represents a 2D segment. Copied from - https://github.com/MonoGame/MonoGame/blob/v2.8/MonoGame.Framework/Ray.cs - and converted to Segment3.

Constructors

Constructor Description

Segment3(a, b)

Full Usage: Segment3(a, b)

Parameters:

Create a Segment3.

a : Vector3

The first point of the Segment3.

b : Vector3

The second point of the Segment3.

Instance members

Instance member Description

this.Equals

Full Usage: this.Equals

Parameters:
Returns: bool
true
if the specified Object is equal to this Segment3,
false
if it is not.
Modifiers: abstract

Check if the specified Object is equal to this Segment3.

obj : obj

The Object to test for equality with this Segment3.

Returns: bool

true
if the specified Object is equal to this Segment3,
false
if it is not.

this.Equals

Full Usage: this.Equals

Parameters:
Returns: bool
true
if the specified Segment3 is equal to this Segment3,
false
if it is not.
Modifiers: abstract

Check if the specified Segment3 is equal to this Segment3.

other : Segment3

The Segment3 to test for equality with this Segment3.

Returns: bool

true
if the specified Segment3 is equal to this Segment3,
false
if it is not.

this.GetHashCode

Full Usage: this.GetHashCode

Returns: int A hash code for this Segment3.
Modifiers: abstract

Get a hash code for this Segment3.

Returns: int

A hash code for this Segment3.

this.Length

Full Usage: this.Length

Returns: float32

The length of the segment.

Returns: float32

this.LengthSquared

Full Usage: this.LengthSquared

Returns: float32

The squared length of the segment.

Returns: float32

this.Normal

Full Usage: this.Normal

Returns: Vector3

The normal of the segment.

Returns: Vector3

this.ToString

Full Usage: this.ToString

Returns: string A String representation of this Segment3.
Modifiers: abstract

Get a String representation of this Segment3.

Returns: string

A String representation of this Segment3.

this.Transform

Full Usage: this.Transform

Parameters:
Returns: Segment3

Transform this Segment3 by a matrix.

m : Matrix4x4
Returns: Segment3

this.Vector

Full Usage: this.Vector

Returns: Vector3

The vector of the segment.

Returns: Vector3

Static members

Static member Description

a <> b

Full Usage: a <> b

Parameters:
    a : Segment3 - A segment to check for inequality.
    b : Segment3 - A segment to check for inequality.

Returns: bool
true
if the two segments are not equal,
false
if they are.

Check if two segments are not equal.

a : Segment3

A segment to check for inequality.

b : Segment3

A segment to check for inequality.

Returns: bool

true
if the two segments are not equal,
false
if they are.

a = b

Full Usage: a = b

Parameters:
    a : Segment3 - A segment to check for equality.
    b : Segment3 - A segment to check for equality.

Returns: bool
true
if the two segments are equals,
false
if they are not.

Check if two segments are equal.

a : Segment3

A segment to check for equality.

b : Segment3

A segment to check for equality.

Returns: bool

true
if the two segments are equals,
false
if they are not.

Type something to start searching.