C# 클래스 Nexus.Objects3D.Plane3D

Defines a plane based on a normal vector and a distance along that vector from the origin.
파일 보기 프로젝트 열기: tgjones/nexus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
D float
Normal Normal3D

공개 메소드들

메소드 설명
Normalize ( Plane3D value ) : Plane3D
Plane3D ( Normal3D normal, float d )

Creates a new plane.

Plane3D ( Point3D a, Point3D b, Point3D c )

Points must be ordered CCW

Transform ( Plane3D plane, Matrix3D matrix ) : Plane3D

메소드 상세

Normalize() 공개 정적인 메소드

public static Normalize ( Plane3D value ) : Plane3D
value Plane3D
리턴 Plane3D

Plane3D() 공개 메소드

Creates a new plane.
public Plane3D ( Normal3D normal, float d )
normal Normal3D The normal vector of the plane.
d float The distance of the plane along its normal from the origin.

Plane3D() 공개 메소드

Points must be ordered CCW
public Plane3D ( Point3D a, Point3D b, Point3D c )
a Point3D
b Point3D
c Point3D

Transform() 공개 정적인 메소드

public static Transform ( Plane3D plane, Matrix3D matrix ) : Plane3D
plane Plane3D
matrix Matrix3D
리턴 Plane3D

프로퍼티 상세

D 공개적으로 프로퍼티

The distance of the plane along its normal from the origin. D = dot(n,p) for a given point p on the plane
public float D
리턴 float

Normal 공개적으로 프로퍼티

The normal vector of the plane. Points x on the plane satisfy Dot(n,x) = d
public Normal3D Normal
리턴 Normal3D