Struct lemon_engine::shapes::triangle::Triangle[][src]

pub struct Triangle {
    pub vertex1: Vector2,
    pub vertex2: Vector2,
    pub vertex3: Vector2,
}
Expand description

A Triangle Struct

Fields

vertex1: Vector2vertex2: Vector2vertex3: Vector2

Implementations

Creates a new Triangle from 3 [i32, i32]’s

Converts the Struct to Vertices instead of Vector2’s

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.