Border builder 1.1
The plugin which allows you easily generate borders
Public Member Functions | Public Attributes | List of all members
BorderBuilder.Triangle Struct Reference

Represents triangle made of 3 points. More...

Public Member Functions

bool IsInside (Vector3 point)
 Checks if a point is inside the triangle.
 
Triangle Scaled (float amount)
 Returns center point scaled triangle.
 
 Triangle (Vector3 a, Vector3 b, Vector3 c)
 
override string ToString ()
 

Public Attributes

readonly Vector3 A
 The point of the triangle.
 
readonly Vector3 B
 The point of the triangle.
 
readonly Vector3 C
 The point of the triangle.
 
readonly float Area
 The area of the triangle.
 

Detailed Description

Represents triangle made of 3 points.

Member Function Documentation

◆ IsInside()

bool BorderBuilder.Triangle.IsInside ( Vector3  point)

Checks if a point is inside the triangle.

Parameters
pointThe point to check
Returns
Returns true if the point is inside

◆ Scaled()

Triangle BorderBuilder.Triangle.Scaled ( float  amount)

Returns center point scaled triangle.

Parameters
amountThe scale factor
Returns
The scaled triangle

The documentation for this struct was generated from the following file: