Plane
Constructors
constructor
• new Plane(origin
, xDirection?
, normal?
)
Parameters
Name | Type | Default value |
---|---|---|
origin | Point | undefined |
xDirection | null | Point | null |
normal | Point | undefined |
Defined in
Properties
_origin
• Private
_origin: Vector
Defined in
globalToLocal
• Private
globalToLocal: Transformation
Defined in
localToGlobal
• Private
localToGlobal: Transformation
Defined in
oc
• oc: OpenCascadeInstance
Defined in
xDir
• xDir: Vector
Defined in
yDir
• yDir: Vector
Defined in
zDir
• zDir: Vector
Defined in
Accessors
origin
• get
origin(): Vector
Returns
Defined in
• set
origin(newOrigin
): void
Parameters
Name | Type |
---|---|
newOrigin | Vector |
Returns
void
Defined in
Methods
_calcTransforms
▸ _calcTransforms(): void
Returns
void
Defined in
clone
▸ clone(): Plane
Returns
Defined in
delete
▸ delete(): void
Returns
void
Defined in
pivot
▸ pivot(angle
, direction?
): Plane
Parameters
Name | Type |
---|---|
angle | number |
direction | Direction |
Returns
Defined in
rotate2DAxes
▸ rotate2DAxes(angle
): Plane
Parameters
Name | Type |
---|---|
angle | number |
Returns
Defined in
setOrigin2d
▸ setOrigin2d(x
, y
): void
Parameters
Name | Type |
---|---|
x | number |
y | number |
Returns
void
Defined in
toLocalCoords
▸ toLocalCoords(vec
): Vector
Parameters
Name | Type |
---|---|
vec | Vector |
Returns
Defined in
toWorldCoords
▸ toWorldCoords(v
): Vector
Parameters
Name | Type |
---|---|
v | Point |
Returns
Defined in
translate
▸ translate(xDist
, yDist
, zDist
): Plane
Parameters
Name | Type |
---|---|
xDist | number |
yDist | number |
zDist | number |
Returns
Defined in
▸ translate(vector
): Plane
Parameters
Name | Type |
---|---|
vector | Point |
Returns
Defined in
translateTo
▸ translateTo(point
): Plane
Parameters
Name | Type |
---|---|
point | Point |
Returns
Defined in
translateX
▸ translateX(xDist
): Plane
Parameters
Name | Type |
---|---|
xDist | number |
Returns
Defined in
translateY
▸ translateY(yDist
): Plane
Parameters
Name | Type |
---|---|
yDist | number |
Returns
Defined in
translateZ
▸ translateZ(zDist
): Plane
Parameters
Name | Type |
---|---|
zDist | number |